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 boxing and unboxing concept in .net?
Explain what is postback in asp. Net?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
How will create assesblies at run time?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Tell me the code snippet to show how we can return 404 errors from HttpError?
Can I stream live content/events?
What is page request in asp.net?
What is the difference between debug and release?
How many types of validation are there?
What is sql data source control in asp.net?
What’s the use of “GLOBAL.ASAX” file?
What is a user developed application?
What is bound controls
What are the various session state management options provided by asp.net?