Answers

Question and Answer:

  Home  Microsoft Web Forms

⟩ How to use QueryString in web forms?

private void Button1_Click (object sender, System.EventArgs e)

{

string url;

url="anotherwebform.aspx?name=" +

TextBox1.Text + "&email=" + TextBox2.Text;

Response.Redirect(url);

}

Destination web form

private void Page_Load (object sender, System.EventArgs e)

{

Label1.Text=Request.QueryString["name"];

Label2.Text=Request.QueryString["email"];

}

 163 views

More Questions for you: