protected void Page_Load(object sender, EventArgs e) { Classes.Auth objAuth = new Classes.Auth(); objAuth.isLoggedIn(); if (IsPostBack) return; Classes.User objUser = new Classes.User(); try { SqlDataReader userData = objUser.getUser("email", Session["username"].ToString()); if (userData != null) { userData.Read(); litEmail.Text = userData["email"].ToString(); txtName.Text = userData["name"].ToString(); txtMobile.Text = userData["mobile"].ToString(); } } catch (Exception ex) { } objUser.close(); }
protected void Page_Load(object sender, EventArgs e) { Classes.Auth objAuth = new Classes.Auth(); objAuth.isLoggedIn(); litName.Text = Session["username"].ToString(); }
protected void Page_Load(object sender, EventArgs e) { Classes.Auth objAuth = new Classes.Auth(); objAuth.isLoggedIn(); }