Example #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string txtName = this.txtName.Text.Trim().Replace("'", "''");

            Resource r = new Resource();

            if (r.AddLightBox(txtName, CurrentUser.UserId, "", DateTime.Now))
            {
                ShowMessage("添加成功");
            }
            else
            {
                ShowMessage("添加失败,请稍后再试");
            }

            bindGrid();
        }