protected void btnSave_Click(object sender, EventArgs e)
        {
            BusinessLayer.Common.MemberSMSCategory objMemberSMSCategory = new BusinessLayer.Common.MemberSMSCategory();
            Entity.Common.MemberSMSCategory        memberSMSCategory    = new Entity.Common.MemberSMSCategory();

            memberSMSCategory.MemberSMSCategoryId   = MemberSMSCategoryId;
            memberSMSCategory.MemberSMSCategoryName = txtCategoryName.Text.Trim();

            int i = objMemberSMSCategory.MemberSMSCategory_Save(memberSMSCategory);

            if (i > 0)
            {
                LoadMemberSMSCategory();
                txtCategoryName.Text = "";

                Message.IsSuccess = true;
                Message.Text      = "Member SMS Category successfully saved...";
            }
            else
            {
                Message.IsSuccess = false;
                Message.Text      = "Member SMS Category can not save!!!";
            }
            Message.Show = true;
        }
        protected void PopulateMemberSMSCategory()
        {
            BusinessLayer.Common.MemberSMSCategory objMemberSMSCategory = new BusinessLayer.Common.MemberSMSCategory();
            Entity.Common.MemberSMSCategory        memberSMSCategory    = new Entity.Common.MemberSMSCategory();

            memberSMSCategory    = objMemberSMSCategory.MemberSMSCategory_GetById(MemberSMSCategoryId);
            txtCategoryName.Text = memberSMSCategory.MemberSMSCategoryName;
        }
        protected void LoadMemberSMSCategory()
        {
            BusinessLayer.Common.MemberSMSCategory objMemberSMSCategory = new BusinessLayer.Common.MemberSMSCategory();
            DataTable dt = new DataTable();

            dt = objMemberSMSCategory.MemberSMSCategory_GetAll();
            if (dt != null)
            {
                dgvMemberSMSCategory.DataSource = dt;
                dgvMemberSMSCategory.DataBind();
            }
        }
        protected void LoadMemberSMSCategory()
        {
            BusinessLayer.Common.MemberSMSCategory objMemberSMSCategory = new BusinessLayer.Common.MemberSMSCategory();
            DataTable dt = objMemberSMSCategory.MemberSMSCategory_GetAll();

            if (dt != null)
            {
                ddlMemberSMSCategory.DataSource     = dt;
                ddlMemberSMSCategory.DataTextField  = "MemberSMSCategoryName";
                ddlMemberSMSCategory.DataValueField = "MemberSMSCategoryId";
                ddlMemberSMSCategory.DataBind();
            }
            ddlMemberSMSCategory.Items.Insert(0, "--SELECT--");
        }