Query String is used for transfer the vaule from one page to another page.
take 2 pages...
in page 1
take 1 button , 1 textbox & in the click event write the code
Response.Redirect("Default2.aspx?user=" + TextBox1.Text + "");
in page 2
take 1 label control.
write the code in page load event
Label1.Text = Request.QueryString["user"].ToString();
by this we can use the value of one page into another page
the main drawback of this is that it can transfer the value between 2 pages only...
to overcome this drawback we use "SESSION HANDLING".
take 2 pages...
in page 1
take 1 button , 1 textbox & in the click event write the code
Response.Redirect("Default2.aspx?user=" + TextBox1.Text + "");
in page 2
take 1 label control.
write the code in page load event
Label1.Text = Request.QueryString["user"].ToString();
by this we can use the value of one page into another page
the main drawback of this is that it can transfer the value between 2 pages only...
to overcome this drawback we use "SESSION HANDLING".
No comments :
Post a Comment