void LoadAuthor() { try { this.lstAuthor.DataSource = BLLAuthor.GetAuthorList(null); this.lstAuthor.DataTextField = "AuthorName"; this.lstAuthor.DataValueField = "AuthorID"; this.lstAuthor.DataBind(); } catch (Exception ex) { throw ex; } }
public void LoadAuthor() { try { Session["AuthorList"] = BLLAuthor.GetAuthorList(null); this.grdAuthor.DataSource = (List <ATTAuthor>)Session["AuthorList"]; this.grdAuthor.DataBind(); } catch (Exception ex) { lblStatus.Text = ex.Message; } }
/// <summary> /// Load author list in dropdown control /// </summary> void LoadAuthor() { try { Session["Author_AuthorList"] = BLLAuthor.GetAuthorList(null); this.lstAuthor.DataSource = (List <ATTAuthor>)Session["Author_AuthorList"]; this.lstAuthor.DataTextField = "AuthorName"; this.lstAuthor.DataValueField = "AuthorID"; this.lstAuthor.DataBind(); } catch (Exception ex) { this.lblStatus.Text = ex.Message; } }
void LoadAuthor() { try { List <ATTAuthor> lst = BLLAuthor.GetAuthorList(null); lst.Insert(0, new ATTAuthor(-1, "--- Select Author ---")); this.ddlAuthor.DataSource = lst; this.ddlAuthor.DataTextField = "AuthorName"; this.ddlAuthor.DataValueField = "AuthorID"; this.ddlAuthor.DataBind(); } catch (Exception ex) { throw ex; } }