can we transfer data from one page to another page using
viewstate if so how?if not y?
Answer Posted / anil pandya
Yes, We can transfer one page data to another page using
viewstate,
The Way :-
The whole page data is stored in viewstate when you do a
page submit, at this point if you do server.transfer to
another page, it is like a postback on same page, you can
access both page data in view state.
To access the previous page data you have to use
System.Web.UI.Page prevPage = this.PreviousPage;
now all your controls are available with the same state they
were posted.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
What is http protocol and how it works?
Difference between application events and session events
Define xmlreader class.
Define page fragment caching?
What is the advantage of using Windows authentication in a Web application?
What is __ requestverificationtoken?
What is asp.net globalization?
Explain asp.net web forms.
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
What is voluum?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
Why do we need a web application session?
Describe the Server Control Events of ASP.NET?
What is query string? What are its advantages and limitations?