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 Posted / geetha
Hi Purushotham,
Thank you very much for your suggestions.Now its working
fine.
Thanks,
Geetha
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Define viewstate in .net?
Explain about Multi-Language integration?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
What are the advantages of the code-behind feature?
Is it possible for me to change my aspx file extension to some other name?
What symbol specifies the beginning of a query string?
What is the difference between custom controls and user controls?
Can asp.net work on an nt server?
How would ASP and ASP.NET applications run at the same time on the same server?
What is the server of asp.net?
What is the use of placeholder control? Can we see it at runtime?
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
What New Features comes with ASP.NET Web API 2.0?
What is manifest in .net framework?
What are the event handlers that we can have in global.asax file?