private void LoadSponsor() { List <ATTSponsor> SponsorLST = BLLSponsor.GetSponsorList(0, "Y"); Session["Sponsors"] = SponsorLST; this.ddlSponsors.DataSource = SponsorLST; this.ddlSponsors.DataValueField = "SponsorID"; this.ddlSponsors.DataTextField = "SponsorName"; this.ddlSponsors.DataBind(); }
private void LoadSponsors() { try { List <ATTSponsor> SponsorLST = BLLSponsor.GetSponsorList(0, "N"); Session["Sponsors"] = SponsorLST; lstSponsors.DataSource = SponsorLST; lstSponsors.DataTextField = "SponsorName"; lstSponsors.DataValueField = "SponsorID"; lstSponsors.DataBind(); } catch (Exception ex) { throw ex; } }