示例#1
0
        protected void btn_Submit_Click(object sender, EventArgs e)
        {
            UserGroup item = bll.GetItemById(id);

            item.GroupName = txtGroupName.Value;
            item.Zk        = Convert.ToInt32(txtZK.Value);
            if (bll.UpdateItem(item) > 0)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('修改成功')", true);
            }
            else
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('修改失败')", true);
            }
        }