I have an asp.net application, where the user would click a button and launch another page (within the same application). The issue I am facing is that the original page an
If you'd like to use Code Behind, may I suggest the following solution for an asp:button -
ASPX Page
Code Behind
protected void btnRecover_Click(object sender, EventArgs e)
{
var recoveryId = Guid.Parse(lbRecovery.SelectedValue);
var url = string.Format("{0}?RecoveryId={1}", @"../Recovery.aspx", vehicleId);
// Response.Redirect(url); // Old way
Response.Write("");
Response.End();
}