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 / jack

TRY THIS it Will WORK



public void Button1_Click(object sender, EventArgs e)
{
ViewState["name"] = TextBox1.Text;
Context.Items.Add("variable", ViewState["name"].ToString());

Server.Transfer("Default2.aspx");
}
//next page

public void Page_Load(object sender, EventArgs e)
{
string myValue = Context.Items["variable"].ToString();
TextBox2.Text = myValue;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you do client-side validation in .net? How to disable validator control by client side javascript?

1024


What are the differnt types of handler in ASP.NET?

980


Explain the asp.net mvc request life cycle? : asp.net mvc

1004


Where is the view state data stored?

990


What is difference Between Authentication and authorization?

1135


Where the viewstate is stored after the page postback?

1060


What is the meaning of TestApi?

1074


Explain the use of resource manager class in .net.

977


What is GAC in ASP.NET 2.0

1155


What is mvc in angular?

973


Can we store object in viewstate?

974


How to bind all the binding controls in a page at once in ASP.NET?

974


What are the disadvantages of using session?

1095


What is the caspol.exe tool used for?

1014


How to make paging concepts in datagrid in ASP.NET?

1025