protected void Page_Load(object sender, EventArgs e) { //when the page loads display the wish list DisplayWishList(); //get the site info ThisSite = (clsSiteInfo)Session["ThisSite"]; }
protected void Page_Load(object sender, EventArgs e) { //check that the user is logged in CheckLogin(); //get the site info ThisSite = (clsSiteInfo)Session["ThisSite"]; //if this is the first time the page has loaded if (IsPostBack == false) { //display the wish list DisplayWishList(); } }
protected void Page_Load(object sender, EventArgs e) { //if this is the first time the page has loaded if (IsPostBack == false) { //generate a password for the new account NewPassword = GeneratePassword(); //get the site info ThisSite = (clsSiteInfo)Session["ThisSite"]; } else { //if it is a page reload then get the already existing password from the session object NewPassword = (string)Session["NewPassword"]; } }