the query string can be passed by using the following format
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
String id="123";
String name = "hello";
Response.Redirect("Default2.aspx?id="+id+"&name="+name);
}
}
don't allow spaces between '&' symbol and other parameter
you can use this inside buttonclick function or any other function
To retrive the value of the query string in next page use the following in page load
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string m = Request.QueryString["id"].ToString();
string n = Request.QueryString["name"].ToString();
Response.Write(m + " " + n);
}
}