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
Explain the different types of directives in .net?
What are custom user controls in asp.net?
How to find last error which occurred in Asp.net ?
What is asp short for?
Describe how ASP.NET maintains process isolation for each Web application?
Why do we use asp.net?
How can u debug your .net application?
WSDL means?
Describe state management in asp.net?
What is the difference between stored procedure vs function?
Is asp.net a programming language or framework?
Explain what does mvc represent in asp.net? : asp.net mvc
What is the difference between trace and debug in asp.net?
Can we store object in viewstate?
Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc