private void LoadAssistanceCompany() { InsuranceCompanyDAL insuranceCompanyDAL = new InsuranceCompanyDAL(); ddlCompany.DataSource = insuranceCompanyDAL.SelectAll(); ddlCompany.DataTextField = "CompanyName"; ddlCompany.DataValueField = "id"; ddlCompany.DataBind(); }
private void LoadInsurance() { InsuranceCompanyDAL insuranceDAL = new InsuranceCompanyDAL(); ddlInsurance.DataSource = insuranceDAL.SelectAll(); ddlInsurance.DataTextField = "CompanyName"; ddlInsurance.DataValueField = "ID"; ddlInsurance.DataBind(); }
private void PopulateGrid() { oDAL = new InsuranceCompanyDAL(); oDs = new DataSet(); if (searchKeyword.Value != "") { oDs = oDAL.SeachData(searchKeyword.Value); } else { oDs = oDAL.SelectAll(); } if (oDs != null) { gvList.DataSource = oDs.Tables[0]; gvList.DataBind(); } }