Skip to content

Commit

Permalink
Hardcoded years for Register, Search, and Edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Arambasich committed Apr 9, 2012
1 parent 2f0f9e7 commit 6ca3046
Show file tree
Hide file tree
Showing 6 changed files with 824 additions and 32 deletions.
Binary file modified StudentAlumniTrackingTool/StudentAlumniTrackingTool.suo
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,7 @@ protected void Page_Load(object sender, EventArgs e)

if (!IsPostBack)
{
int year = System.DateTime.Now.Year;
year += 10; // Add for current students who don't graduate this year but in the next few coming years.
DropDownList GradYear = (DropDownList)RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("GradYearDropdown");
DropDownList EmployerStartYear = (DropDownList)RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("EmployerStartDateDDYear");
DropDownList EmployerEndYear = (DropDownList)RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("EmployerEndDateYear");
for (int i = 1900; i <= year; i++)
{
ListItem yearItem = new ListItem(i.ToString(), i.ToString(), true);
GradYear.Items.Add(yearItem);
EmployerStartYear.Items.Add(yearItem);
EmployerEndYear.Items.Add(yearItem);
}
GradYear.DataBind();
EmployerStartYear.DataBind();
EmployerEndYear.DataBind();

}
}

Expand Down
Loading

0 comments on commit 6ca3046

Please sign in to comment.