ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
I am using ASP.Net 2.0. I added the following code in 
button_Click page. but 'PreviousPage' is not taking as a 
keyword. It throughs an error.

Page Poster = this.PreviousPage;

TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest");

sDisplay = txtNewTest.Text;

Response.Write(sDisplay);

The following is the Error Message:

'controls_LoginMain' does not contain a definition 
for 'PreviousPage'	
 Question Submitted By :: Geetha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'
Answer
# 1
hi u have 2 use previous page directive in page where u 
want 2 access previous page controls.
aspx:

<%@ PreviousPageType VirtualPath="~/Default.aspx" %>

aspx.cs:
       TextBox txt= (TextBox)Page.PreviousPage.FindControl
("TextBox1");
       Response.Write(txt.Text.ToString());
 
Is This Answer Correct ?    10 Yes 1 No
Purushotham
 
  Re: I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'
Answer
# 2
Hi Purushotham,

Thank you very much for your suggestions.Now its working 
fine.


Thanks,
Geetha
 
Is This Answer Correct ?    0 Yes 1 No
Geetha
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that HCL1
What namespace does the Web page belong in the .NET Framework class hierarchy?  1
I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format? FutureTech1
what do you mean software devlopment ? HCL6
Name two properties common in every validation control?  6
To call a Web service which transport protocol you can use?  3
I have to send data throug querystring from one page to another. But it should not be displayed in URL. How it is possible? EMR5
What is the importence of the INTERFACE? but not the inheritence concept?and why we r declaring the empty methods in that? we can directly implements with in the class know? Tell me the importence?  2
Derive WSDL?  6
What is dataset ? Infosys10
When we are requesting a new URL through Response.Redirect() the new page wil open on the new browser window or it wil open in the same window? If we use Server.Transfer() what wil happen?  1
What?s the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"? Visual-Soft1
Which keyword you should use for class not to extend? Which keyword to be used for making the class accessible within the assembly only what are the authentication mode of ASP.NET How will you call a JavaScript function using code-behind? How will you define the Session Timeout? What are the methods to validate client-side whether the input is a correct Date format? You want to write a log when ASP.NET application starts. Which is the best place to write that peice of code? What are the page load events and what is there order? What is the difference between abstract class and interface? What are the differences between DataSet and DataReader? What are the two properties other than DataSource, which is required to populate the Drop Down Menu? What is difference between String and StringBuilder Classes? What are differences between Custom control and User control? Ignis-Technologies1
WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID Seion-Infotech1
what is new debug tools in asp.net ?  1
Why is catch(Exception) almost always a bad idea?  3
In a Code-Behind class generally which type of code is found ?  3
What is Virtual path in ASP.Net Proteans2
When we do partial refresh of a page using update panel how server knows it(which event occurs?)  2
What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?  6
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com