private void BindataToRpt() { CategoryLv1 obj = new CategoryLv1(); rptCatlv1.DataSource = obj.GetAll(); rptCatlv1.DataBind(); }
private void BindataToDdl() { CategoryLv1 obj = new CategoryLv1(); DataTable dtb = new DataTable(); dtb = obj.GetAll(); ddlCategoryLv1.DataSource = dtb; ddlCategoryLv1.DataValueField = "CategoryLv1"; ddlCategoryLv1.DataTextField = "Description"; ddlCategoryLv1.DataBind(); }