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
Explain about asp.net 2.0 themes?
What is the difference between asp.net and mvc?
How can you display all validation messages in one control?
What is the full meaning of asp.net?
How many types of sessions are there in asp net?
What are custom controls?
Are xaml file compiled or built on runtime?
What is a viewbag?
If you want to write your own dot net language, what steps you will you take care?
What is postback in asp net?
How do u declare static variable and how it is declared and what is its lifetime?
Which object encapsulates state or data of a user?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
Can you explain composite pattern?
Explain the difference between AutoPostBack and IspostBack in ASP.NET?