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

Explain how is the asp.net mvc architecture different from others? : asp.net mvc

1009


Explain the differences between managed and unmanaged code?

1037


Can the unique key be null?

1102


What is caching? Explain.

970


To display data in a Repeater control which template you provide?

1036


How can we Validate a Controls in ASP.NET page using JavaScript?

1182


What are the navigation ways between pages available in ASP.NET?

1030


What is difference between abstract class and an interface?

937


What is state management techniques in asp.net?

1027


What is a gridview in asp.net?

1014


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,?

1056


What is virtual directory in asp.net?

1042


Explain the difference between singleton and single call?

979


How can we use Web API with ASP.NET Web Form?

1098


Explain significance of routing? : asp.net mvc

1124