protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // redirect to login if the user if is null if (Session["UserId"] == null) { Response.Redirect("Login.aspx"); } userId = int.Parse(Session["UserId"].ToString()); proxy = new AccountManagementService.AccountManagement(); LoadUserInformation(); } }
protected void Page_Load(object sender, EventArgs e) { proxy = new AccountManagementService.AccountManagement(); }
public bool UpdateState(int userId, string content) { proxy = new AccountManagementService.AccountManagement(); return(proxy.UpdateState(userId, content)); }