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 / prasad bakshi

This is VERY MUCH POSSIBLE to access viewstate on another
page. This is only possible when you use SERVER.TRANSFER

Try this out.

Create a textbox control on page1.aspx and have a button.

Onclick of button put this code in page load event of
Page2.aspx.

/*****************************************************/
Page Poster = this.PreviousPage;

TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest");

sDisplay = txtNewTest.Text;

Response.Write(sDisplay);
/*****************************************************/

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Elaborate differentiation between ViewState and SessionState?

1105


What parameters can you pass in the url of the api?

1119


How u refer webservices?

1961


Write the different features of a Thread and a Process?

1158


Explain the use of errorprovider control in .net?

971


Explain the difference between web user control and web custom control?

1002


What is the main function of url routing system in asp.net mvc? : asp.net mvc

1016


I’m having some trouble with cas. How can I diagnose my problem?

1042


How would you create a permanent cookie?

1048


Differentiate between a page theme and a global theme?

969


Explain asp.net application life cycle?

986


What is the difference between session object and application object?

1050


What are custom controls?

956


What is the significance of attaching a profile while creating a user?

1051


What is difference between asp state management and asp.net state management?

1094