My code is
Default.aspx code is
int a = 3;
Response.Redirect("Default2.aspx?=" + a.ToString());
Default2.aspx code is
int orderid = int.Parse(Request.QueryString["a"].ToString()); //Getting Error(Object reference not set to an instance of an object.)