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

Describe the sequence of action takes place on the server when ASP.NET application starts first time?

1185


What is http protocol and how it works?

1101


Difference between application events and session events

1074


Define xmlreader class.

1075


Define page fragment caching?

975


What is the advantage of using Windows authentication in a Web application?

1161


What is __ requestverificationtoken?

1059


What is asp.net globalization?

1032


Explain asp.net web forms.

1145


If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

1069


What is voluum?

1018


Explain what is the procedure to create the environment for asp.net? : asp.net mvc

1075


Why do we need a web application session?

1035


Describe the Server Control Events of ASP.NET?

1230


What is query string? What are its advantages and limitations?

1036