Пример #1
0
        protected void cmdAddNew_Click(object sender, EventArgs e)
        {
            GroupInfo info = new GroupInfo();

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