protected void Page_Load(object sender, EventArgs e) { Security mySecurity = new Security(); if (!mySecurity.IsAdmin()) { Response.Redirect("Index.aspx"); } if (!IsPostBack) { loadBookings(); ddlRoom(); ddlUser(); loadRooms(); LoadFloors(); } }
protected void Page_Load(object sender, EventArgs e) { Security mySecurity = new Security(); if (!mySecurity.IsAdmin()) { Response.Redirect("Index.aspx"); } if (!IsPostBack) { LoadUsers(); } }