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
How do you do client-side validation in .net? How to disable validator control by client side javascript?
What are the differnt types of handler in ASP.NET?
Explain the asp.net mvc request life cycle? : asp.net mvc
Where is the view state data stored?
What is difference Between Authentication and authorization?
Where the viewstate is stored after the page postback?
What is the meaning of TestApi?
Explain the use of resource manager class in .net.
What is GAC in ASP.NET 2.0
What is mvc in angular?
Can we store object in viewstate?
How to bind all the binding controls in a page at once in ASP.NET?
What are the disadvantages of using session?
What is the caspol.exe tool used for?
How to make paging concepts in datagrid in ASP.NET?