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--"); }