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
Explain the difference between an exe and a dll?
Which namespace is used by ado.net?
What is the difference between typeof() vs gettype()?
How do you create a master page?
What is query string? What are its advantages and limitations?
Differentiate globalization and localization.
What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?
What is a user developed application?
What is another word for redirect?
What are the new navigation controls in asp.net 2.0?
What's the use of formatters in .net?
What are session objects?
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?
how to elimainte the similar data from the different tables
How many types of session state management options available in asp.net?