示例#1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        txtManageId.Text = DisposeString.DisString(txtManageId.Text.Trim());
        Model.DefaultMessage def = GetModel(1, txtManageId.Text.Trim());

        bool isSure = ManagerBLL.UpdateDefaultManage(def);

        if (!isSure)
        {
            Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert("修改失败!"));
            return;
        }

        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script language='javascript'>alert('修改成功,请重新登录!');top.location.href('../logout.aspx')</script>");
    }