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


Please Help Members By Posting Answers For Below Questions

What are the different web pages?

495


Explain how does asp page work?

576


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

565


Do you know about caching with the datasource controls?

486


Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?

538






Why Unload event of MasterPage Calls first in ASP.net ?

588


What are Master Pages in ASP.NET?

577


Will session work if cookies is disabled?

527


How can we create pie chart in asp.net?

585


How can u deifne the benefits and limitation of using Viewstate for state management?

708


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

537


What is the significance of attaching a profile while creating a user?

567


Define page fragment caching?

526


What is meant by asp.net?

540


What is xaml? Are xaml file compiled or built on runtime?

527