public void BindGv() { DataSet dsCosubcategoryMasterList = CCoSubCategoryMasterServices.CosubcategoryList(); gvCosubcategoryList.DataSource = dsCosubcategoryMasterList; gvCosubcategoryList.DataBind(); }
private void BindCosubcategory() { DataSet dsCosubcategoryMasterList = CCoSubCategoryMasterServices.CosubcategoryList(); ListBox1.DataSource = dsCosubcategoryMasterList; ListBox1.DataTextField = "Cosubcategorydesc"; ListBox1.DataValueField = "CosubcategoryId"; ListBox1.DataBind(); }