Пример #1
0
        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();
            }
        }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     proxy = new AccountManagementService.AccountManagement();
 }
Пример #3
0
 public bool UpdateState(int userId, string content)
 {
     proxy = new AccountManagementService.AccountManagement();
     return(proxy.UpdateState(userId, content));
 }