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
What is the difference between c# and .net?
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?
What is the equivalent of date() and time() in asp.net?
Distinguish between Server-side and Client-side code?
What are the events in a page life cycle?
What is a master page and what does it do?
Describe the Server Control Events of ASP.NET?
Which tool you have done?
What is bson in web api?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What is the difference between cache and cookies?
What is difference between session and cookies?
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
What is session and cookies in asp.net?
What is difference between asp state management and asp.net state management?