can we transfer data from one page to another page using
viewstate if so how?if not y?
Answer Posted / pranit
Yes, we can access the viewstate variables across pages.
This is only possible if Cross Page Posting or
Server.transfer is used to redirect the user to other page.
If Response.redirect is used, then ViewState cannot be
accessed across pages.
StateBag class: This class is the primary storage mechanism
for all HTML and Web server controls. It stores
attribute/value pairs as strings associated with the
control. It tracks changes to these attributes only after
the OnInit method is executed for a page request, and saves
the changes to the page's or control's viewstate.
For
Detail:http://www.codeproject.com/Articles/37753/Access-ViewState-Across-Pages
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different web pages?
Explain how does asp page work?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
Do you know about caching with the datasource controls?
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?
Why Unload event of MasterPage Calls first in ASP.net ?
What are Master Pages in ASP.NET?
Will session work if cookies is disabled?
How can we create pie chart in asp.net?
How can u deifne the benefits and limitation of using Viewstate for state management?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
What is the significance of attaching a profile while creating a user?
Define page fragment caching?
What is meant by asp.net?
What is xaml? Are xaml file compiled or built on runtime?