protected void Page_Load(object sender, EventArgs e) { _timesheetid = Int32.Parse(Request.Params["id"]); TFS.Intranet.Data.Billing.TimesheetController controller = new TFS.Intranet.Data.Billing.TimesheetController(); month.Value = Request.Params["month"]; year.Value = Request.Params["year"]; if (!IsPostBack) { TFS.Intranet.Data.Billing.Timesheet timesheet = new TFS.Intranet.Data.Billing.TimesheetController().FetchByID(_timesheetid)[0]; DaysPerDiem.Text = timesheet.Perdiemcount.ToString(); Mileage.Text = timesheet.Mileageclaimed.ToString(); PayRateGroup.Text = timesheet.RateGroup.Name; } }