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

What kind of programming language is ASP.NET?

1147


Fetch one page value to another page without using state-managment ?

909


Are xaml file compiled or built on runtime?

977


How do we access view state value of this page in the next page?

1001


What is the difference between session and viewstate in asp.net?

1119


What is the difference between page directive include and action tag include?

938


How ASP.NET page works?

1099


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

1040


What is the default timeout for a cookie?

1060


How can we prepairing Interview

2338


What is the difference between page-level caching and fragment caching?

975


What are the benefits of Razor View?

948


What is cookies cache and session?

963


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

1085


What are uri parameters?

1042