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
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
Explain the steps to be followed to use passport authentication.
What is sdlc process?
What is AutoEventWireup attribute for ?
How many web config files can be created for an application?
Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj
What is asp according to you?
What are cookies in asp.net?
What are the Types of state management techniques
What is runat?
Define the types of configuration files.
What is the difference between cache and cookies?
How can you handle errors in Web API?
Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?
What is a postback in asp net?