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 kind of programming language is ASP.NET?
Fetch one page value to another page without using state-managment ?
Are xaml file compiled or built on runtime?
How do we access view state value of this page in the next page?
What is the difference between session and viewstate in asp.net?
What is the difference between page directive include and action tag include?
How ASP.NET page works?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What is the default timeout for a cookie?
How can we prepairing Interview
What is the difference between page-level caching and fragment caching?
What are the benefits of Razor View?
What is cookies cache and session?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What are uri parameters?