Response.Redirect("Webform2.aspx?Name=" +txtName.Text);
A Querystring is built on the first page and retrieved on second page load as following.
this.txtBox1.Text = Request.QueryString["Name"];
Querystring is very easy and convenient to use Querystring but its not secure because the info is displayed in the browser.
Querystring has maximum length so it will not work for large amount of info to transport.
Querystring can't carry & and space.
State management is an art which retains user specific
info between requests but most of the time the scope of info is global to
entire app, To achieve the goal of state management in the app you may mix up
the following client side state management options
- Control state
- Hidden fields