Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Passing variables to another page using HttpResponse in C#

  1. private void Button1_Click(object sender, System.EventArgs e)
  2. {
  3. // Value sent using HttpResponse
  4.  
  5. Response.Redirect("WebForm5.aspx?Name="+txtName.Text);
  6. }


Receiving like:
  1. if (Request.QueryString["Name"]!= null)
  2. Label1.Text = Request.QueryString["Name"];