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 is custom events? How to create it?

1092


What is asp according to you?

1093


Is session server side or client side?

1017


Is it true that a Web service must be written in .NET or not?

1140


What is a SESSION and APPLICATION object?

1095


Explain the asp.net mvc folder conventions? : asp.net mvc

1042


What is AutoEventWireup attribute for ?

1071


What kind of data can be stored in viewstate?

1027


In which situation can you not use a viewstate?

1001


Will the asp.net validators run in server side or client side?

1195


Where do we store our connection string in asp.net application?

1077


Can we store object in viewstate?

1018


Can a master page have more than one contentplaceholder?

1013


Distinguish between Server-side and Client-side code?

1157


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

1267