protected void Page_Load(object sender, EventArgs e) { loginUser = new User(); //Get the UserName from the Registration-Page for better usability if (Session["currentUser"] != null) { lastRegistratedUser = (User)Session["currentUser"]; txtUsername.Text = lastRegistratedUser.UserName; } }
protected void Page_Load(object sender, EventArgs e) { currentUser = new User(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { List<int[]> seats = new List<int[]>(); chosenScreening = (Movie) Session["chosenScreening"]; loggedUser = (User) Session["loggedUser"]; userId = loggedUser.UserId; newOrder = new Order(chosenScreening.MovieScreeningId, userId); _seats = new List<int[]>(); lblMovieTitle.Text = chosenScreening.Title; lblMovieTime.Text = chosenScreening.Date.Day.ToString().PadLeft(2, '0') + "." + chosenScreening.Date.Month.ToString().PadLeft(2, '0') + "." + chosenScreening.Date.Year + ", " + chosenScreening.Time.Hour.ToString().PadLeft(2, '0') + ":" + chosenScreening.Time.Minute.ToString().PadLeft(2, '0'); CreateDropDowns(); } }