protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ISISLogic iLogic = new ISISLogic(); List<Project> lProjs = iLogic.GetProjects(); iLogic = null; ddlRenameProjectNames.DataSource = lProjs; ddlRenameProjectNames.DataBind(); ddlRemoveProjectNames.DataSource = lProjs; ddlRemoveProjectNames.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ISISLogic iLogic = new ISISLogic(); ddlProjectActNames.DataSource = iLogic.GetProjects(); ddlProjectActNames.DataBind(); lblYearPrevious.Text = iLogic.GetYearValue(-1); lblYearCurrent.Text = iLogic.GetYearValue(0); lblYearNext.Text = iLogic.GetYearValue(1); iLogic = null; } }