ASP.NET单击某一按钮条件跳转
ASP.NET中在单击某一按钮后,判断一些条件,如果条件满足则跳转到另一个页面否则不跳转,请问怎么实现?
------解决方案--------------------
<asp:LinkButton ID="LinkButton1" runat="server" Text='跳转' oncilck="LinkButton1_Click" ></asp:LinkButton >
protected void LinkButton1_Click(object sender, CommandEventArgs e)
{
if (...){
response.redirect("webform2.aspx");
}
}