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
Where the assembly is stored in asp.net?
Who generates session id?
Can you use Web API with ASP.NET Web Form?
What is the postback property in asp.net?
What is the difference between response.redirect and server.transfer?
Explain transparent caching with aop?
how to elimainte the similar data from the different tables
Define view state.
What are the navigation ways between pages available in ASP.NET?
What is asp.net file?
Can master pages be nested?
What are sql joins?
Can asp.net work on an nt server?
Describe how passport authentication works.
What is mvc in angular?