can we transfer data from one page to another page using
viewstate if so how?if not y?
Answer Posted / prasad bakshi
This is VERY MUCH POSSIBLE to access viewstate on another
page. This is only possible when you use SERVER.TRANSFER
Try this out.
Create a textbox control on page1.aspx and have a button.
Onclick of button put this code in page load event of
Page2.aspx.
/*****************************************************/
Page Poster = this.PreviousPage;
TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest");
sDisplay = txtNewTest.Text;
Response.Write(sDisplay);
/*****************************************************/
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
What is difference between viewstate and session in asp net?
Describe the disadvantage of cookies.
What is difference cookie and session?
What is viewstate information stored?
What is application and session in asp.net?
When maintaining session through sql server, what is the impact of read and write operation on session objects?
What is the state management in asp.net?
How many types of triggers are there in update panel?
How can we inherit a static variable?
If we remove web.config or machine.config from the application then, is this application will works?
What is the difference between a cookie and a pixel?
Why is global asax is used?
what is command line compiler.what are the steps and how it is related to debugging.
What is sql data source control in asp.net?