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


Please Help Members By Posting Answers For Below Questions

Explain file-based dependency and key-based dependency.

567


What do you understand from custom control?

603


To bind columns manually which tags do you need to add within the asp:datagrid ?

549


Can any body provide me the sample web application in asp.net

1433


How is application management and maintenance improved in asp.net 2.0?

533






Is asp.net outdated?

524


What is rending process in ASP.NET?

611


explain code with multi inhertance

1642


What do you mean by marshalbyref?

636


How to find last error which occurred in Asp.net ?

676


What is the difference between viewstate and hidden field in asp.net?

484


Explain the different types of directives in .net?

517


What is a viewstate?

560


What is state management in asp.net with example?

454


Is post back in asp.net?

518