Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why SessionID changes in every request in asp.net?

918


Is razor a programming language?

934


Explain the difference between singleton and single call?

932


What is view state management in asp net?

864


What are the asp.net 2.0 features?

956


How to bind all the binding controls in a page at once in ASP.NET?

926


What is page request in asp.net?

893


How will create assesblies at run time?

934


What is the file through which you can customize your asp.net application?

1037


What are the advantages of using Master Pages?

974


What is difference between web config and global asax?

822


What is difference cookie and session?

926


What is is post back property in asp net?

961


How can I have a particular web page in an asp.net application which displays its own error page?

1044


How can you enable impersonation in the web.config file?

1086