public void LoadPublisherType() { try { Session["PublisherTypeList"] = BLLPublisher.GetPublisherList(); this.LBPublisher.DataSource = (List <ATTPublisher>)Session["PublisherTypeList"]; this.LBPublisher.DataTextField = "PublisherName"; this.LBPublisher.DataValueField = "PublisherID"; this.LBPublisher.DataBind(); } catch (Exception ex) { throw (ex); } }
void LoadPublisher() { try { List <ATTPublisher> l = BLLPublisher.GetPublisherList(); l.Insert(0, new ATTPublisher(0, "--- Select Publisher ---", "", "", "")); this.ddlPublisher_Rqd.DataSource = l; this.ddlPublisher_Rqd.DataTextField = "PublisherName"; this.ddlPublisher_Rqd.DataValueField = "PublisherID"; this.ddlPublisher_Rqd.DataBind(); } catch (Exception ex) { throw ex; } }
void LoadPublisher() { try { List <ATTPublisher> l = BLLPublisher.GetPublisherList(); l.Insert(0, new ATTPublisher(0, "--- Select Publisher ---", "", "", "")); this.ddlPublisherType.DataSource = l; this.ddlPublisherType.DataTextField = "PublisherName"; this.ddlPublisherType.DataValueField = "PublisherID"; this.ddlPublisherType.DataBind(); } catch (Exception ex) { this.lblStatus.Text = ex.Message; } }