DropDownList1.Items.Add("AC"); DropDownList1.Items.Add("NON-AC"); DropDownList1.Items.Add("DELUX"); } protected void Button1_Click(object sender, EventArgs e) { if (TextBox1.Text!= "") { string s = TextBox1.Text; Response.Redirect("WebForm2.aspx?val=" + TextBox1.Text); } in aspx2 protected void Page_Load(object sender, EventArgs e) { Button b = new Button(); b.Text =Request.QueryString["val"]; Panel1.Controls.Add(b);
protected void Button1_Click(object sender, EventArgs e) { string value = DropDownList1.SelectedItem.Value; Response.Redirect("WebForm2.aspx?val=" + value); }
Response.Redirect("WebForm2.aspx?val=" + HttpUtility.UrlEncode(value));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)