using System; using PizzaSystem; namespace PizzaPresentation { public partial class ChooseAction : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // if room not there or service API not there, redirect to start page PizzaConfig pizzaSystem = (PizzaConfig)Application["PizzaSys"]; String roomNumberStr = (String)Session["room"]; if (pizzaSystem == null || roomNumberStr == null) { Response.Redirect("StudentStart.aspx", false); return; } } } }