我如何对按钮进行编码,以便当我单击该按钮时,它会将我带到另一个Web表单?假设按钮名是Confirm,Wed表单是confirm.aspx?
protected void btnConfirm_Click(object sender, EventArgs e)
{
(guessing that there should be an input here)
}
我如何对按钮进行编码,以便当我单击该按钮时,它会将我带到另一个Web表单?假设按钮名是Confirm,Wed表单是confirm.aspx?
protected void btnConfirm_Click(object sender, EventArgs e)
{
(guessing that there should be an input here)
}
你可以在你的按钮点击事件上做Response.Redirect("YourPage.aspx");
或Server.Transfer("YourPage.aspx");
.
protected void btnConfirm_Click(object sender, EventArgs e)
{
Response.Redirect("YourPage.aspx");
//or
Server.Transfer("YourPage.aspx");
}