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
Elaborate differentiation between ViewState and SessionState?
What parameters can you pass in the url of the api?
How u refer webservices?
Write the different features of a Thread and a Process?
Explain the use of errorprovider control in .net?
Explain the difference between web user control and web custom control?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
I’m having some trouble with cas. How can I diagnose my problem?
How would you create a permanent cookie?
Differentiate between a page theme and a global theme?
Explain asp.net application life cycle?
What is the difference between session object and application object?
What are custom controls?
What is the significance of attaching a profile while creating a user?
What is difference between asp state management and asp.net state management?