protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // Fill the grid fillLoansDTO(); // Fill dropdownlist DropDownSection.DataSource = Section.getAll(); DropDownSection.DataTextField = "Name"; DropDownSection.DataValueField = "SectionId"; DropDownSection.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { GridMainList.DataSource = null; if (!IsPostBack) { // Fill filter DropDownSection.DataSource = BSection.getAll(); DropDownSection.DataTextField = "Name"; DropDownSection.DataValueField = "SectionId"; DropDownSection.DataBind(); // Fill the grid fillBookDTO(); } }