Example #1
0
 public static void SetPageAttribute(Page myPage)
 {
     try
     {
         var myControl = (HiddenField)myPage.FindControl("hfSchoolYear");
         myControl.Value = WorkingProfile.SchoolYear;
         myControl       = (HiddenField)myPage.FindControl("hfPageID");
         myControl.Value = WorkingProfile.PageItem;
         myControl       = (HiddenField)myPage.FindControl("hfSchoolCode");
         myControl.Value = WorkingProfile.SchoolCode;
         myControl       = (HiddenField)myPage.FindControl("hfSchoolArea");
         myControl.Value = WorkingProfile.SchoolArea;
         myControl       = (HiddenField)myPage.FindControl("hfUserLoginRole");
         myControl.Value = WorkingProfile.UserRoleLogin;
         myControl       = (HiddenField)myPage.FindControl("hfRunningModel");
         myControl.Value = WebConfig.RunningModel();
         myControl       = (HiddenField)myPage.FindControl("hfContentChange");
         myControl.Value = "0";
         myControl       = (HiddenField)myPage.FindControl("hfStudentID");
         myControl.Value = WorkingProfile.UserEmployeeId;
     }
     catch
     {}
 }