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 / anil pandya

Yes, We can transfer one page data to another page using
viewstate,

The Way :-

The whole page data is stored in viewstate when you do a
page submit, at this point if you do server.transfer to
another page, it is like a postback on same page, you can
access both page data in view state.

To access the previous page data you have to use

System.Web.UI.Page prevPage = this.PreviousPage;

now all your controls are available with the same state they
were posted.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where the assembly is stored in asp.net?

962


Who generates session id?

875


Can you use Web API with ASP.NET Web Form?

1088


What is the postback property in asp.net?

930


What is the difference between response.redirect and server.transfer?

974


Explain transparent caching with aop?

883


how to elimainte the similar data from the different tables

2119


Define view state.

900


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

989


What is asp.net file?

1116


Can master pages be nested?

889


What are sql joins?

934


Can asp.net work on an nt server?

984


Describe how passport authentication works.

1062


What is mvc in angular?

927