예제 #1
0
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        Button bt     = (Button)sender;
        int    userid = Convert.ToInt32(((HiddenField)(bt.Parent.FindControl("HiddenField2"))).Value);

        if (NoticeManager.deleteID(userid) > 0)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "message", "<script language='javascript' >alert('删除成功!');</script>");
            BindNotice();
        }
    }