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 how is the asp.net mvc architecture different from others? : asp.net mvc
Explain the differences between managed and unmanaged code?
Can the unique key be null?
What is caching? Explain.
To display data in a Repeater control which template you provide?
How can we Validate a Controls in ASP.NET page using JavaScript?
What are the navigation ways between pages available in ASP.NET?
What is difference between abstract class and an interface?
What is state management techniques in asp.net?
What is a gridview in asp.net?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
What is virtual directory in asp.net?
Explain the difference between singleton and single call?
How can we use Web API with ASP.NET Web Form?
Explain significance of routing? : asp.net mvc