/* * FUNCTION : Page_Load * * DESCRIPTION : * */ protected void Page_Load(object sender, EventArgs e) { FormsIdentity ident = User.Identity as FormsIdentity; if (ident != null) { FormsAuthenticationTicket ticket = ident.Ticket; string[] buffer = ticket.UserData.Split('|'); string GroupID = buffer[0]; string UserID = buffer[1]; log.AddEventToLog("User Authenticated", "Audit", "RegisterAccounts"); if (Int32.Parse(GroupID) < 3) { Button14.Visible = true; } } //Does not require validation if (!IsPostBack) { CollegeUniversity.DataTextField = "_institution_name"; CollegeUniversity.DataSource = myDal.getStoredProcData("GetInstitutes"); CollegeUniversity.DataBind(); YearOfGraduation.DataSource = items; YearOfGraduation.DataBind(); } }