Example #1
0
        protected void cmdUpdate_Click(object sender, EventArgs e)
        {
            GroupInfo info = GroupDB.GetInfo(ConvertUtility.ToInt32(txtID.Text));

            if (info == null)
            {
                return;
            }

            info.Group_Name        = txtName.Text.Trim();
            info.Group_Description = txtDes.Text;
            try
            {
                GroupDB.Update(info);
                lblUpdateStatus.Text = MiscUtility.UPDATE_SUCCESS;
            }
            catch
            {
                lblUpdateStatus.Text = MiscUtility.UPDATE_ERROR;
            }
        }