protected void btnReject_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(hdGpID.Value)) { Group oGp = new Group(Util.GetIntNumber(hdGpID.Value)); GroupDAL oGpDAL = new GroupDAL(); oGp.UserDetails = ucUserDet.UserDetail; Result oResult = (Result)oGpDAL.Reject(oGp); if (oResult.Status) { ucMessage.OpenMessage(Constants.MSG_SUCCESS_REJECT, Constants.MSG_TYPE_SUCCESS); } else { ucMessage.OpenMessage(Constants.MSG_ERROR_REJECT, Constants.MSG_TYPE_ERROR); } } else { ucMessage.OpenMessage(Constants.MSG_ERROR_REJECT, Constants.MSG_TYPE_ERROR); } }