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
Why SessionID changes in every request in asp.net?
Is razor a programming language?
Explain the difference between singleton and single call?
What is view state management in asp net?
What are the asp.net 2.0 features?
How to bind all the binding controls in a page at once in ASP.NET?
What is page request in asp.net?
How will create assesblies at run time?
What is the file through which you can customize your asp.net application?
What are the advantages of using Master Pages?
What is difference between web config and global asax?
What is difference cookie and session?
What is is post back property in asp net?
How can I have a particular web page in an asp.net application which displays its own error page?
How can you enable impersonation in the web.config file?