Example #1
0
    protected void gvExamine_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        int id = Convert.ToInt32(e.CommandArgument);

        try
        {
            ExamineManager.DeleteEXamine(id);
            this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('删除成功!')", true);
            Pager1_onLoadPageIndexChaning(Pager1.PageIndex);
        }
        catch (Exception)
        {
            this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('删除失败!')", true);
            return;
        }
    }