iorunner

Untitled

Feb 26th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. protected void Page_Load(object sender, EventArgs e)
  2.         {
  3.             if (!IsPostBack)
  4.             {
  5.                 // the following line of code is for code build.  Remove this line of code to require login.
  6.                 UserHelper.LoadTestSessionUser();
  7.  
  8.                 SetPatientsTabToSelected();
  9.                 LoadAllDropDowns();
  10.                 UpdateTimer.Enabled = true;
  11.                 MySession.Instance.InactivityCounter = 0;
  12.             }
  13.  
  14.             if (!UserHelper.IsUserAuthorizedToVisitPage("DoctorPatients.aspx"))
  15.                 Response.Redirect("login.aspx");
  16.            
  17.             DBCTest_2.SelectParameters["UserID"].DefaultValue = MySession.Instance.LoggedInUserID.ToString();
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment