protected void Start_Period(object sender, EventArgs e) { int periodaccountid = Int32.Parse(((LinkButton)sender).CommandArgument); String username = getUsername(); var user = new UserController().ByUsername(username); new TFS.Intranet.Data.Billing.TimesheetController().Insert(username, periodaccountid, user.Rategroup); OpenTimesheets.DataBind(); PendingTimesheets.DataBind(); ReportableTimesheets.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { ReportableTimesheets.DataBind(); }