当我在这里调用一个函数时,我想重定向到另一个页面我的按钮
<button id="test" runat="server" onclick="Button1_Click()"> Button here </button>
这是我的按钮动作
protected void Button1_click(Object sender, EventArgs e)
{
int ID = 0;
Label5.Visible = false;
ID = Convert.ToInt32(GridView1.Rows[row.RowIndex].Cells[1].Text);
// somthing like
// Server.Transfer("~/Producter/Delete?id="+ id)
// OR
Response.Redirect("~/Producter/Delete?id="+ ID);
}