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
How to comment out asp.net tags?
What is session mode in asp.net?
Explain automatic memory management in .net.
What is the use of ASP.NET routing?
What is the function of new view engine in asp.net? : asp.net mvc
Why do we use datasource in asp.net?
What is new asp.net core?
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
What is voluum?
What is the purpose of asp.net?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
Define msil.
Explain the Session state management options available with ASP.NET?
What is is post back property in asp net?