Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please suggest the solution...
Posted
Updated 25-Mar-14 23:19pm
v2

 
Share this answer
 
Pass it like

C#
protected void Button_Click(object sender, CommandEventArgs e)
    {
     Response.Redirect("Page2.aspx?QueryVal=yes");
}


And in the Next Page , access it like

C#
var value = Request.QueryString["QueryVal"];
 
Share this answer
 
go to properties of button and find postbackurl and their write your url with querystring
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900