예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }