Beispiel #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._module = base.Module as ProfileModule;

            if (!this.IsPostBack)
            {
                // Databind is required to bind the localized resources.
                this.DataBind();
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this._module = base.Module as ProfileModule;

            if (!Context.User.Identity.IsAuthenticated)
            {
                ShowMessage(base.GetText("NOTAUTHENTICATED"));
            }
            else
            {
                if (!this.IsPostBack)
                {
                    BindTimeZones();
                    BindUser();
                    // Databind is required to bind the localized resources.
                    base.BindResources();
                }
            }
        }
 protected void Page_Load(object sender, System.EventArgs e)
 {
     this._module = base.Module as ProfileModule;
     if (this._module.CurrentUserId > 0)
     {
         CMS.Core.Domain.User user = this._module.GetUserById(this._module.CurrentUserId);
         if (user != null)
         {
             this.litTitle.Text = String.Format(GetText("VIEWPROFILETITLE"), user.UserName);
             BindUser(user);
             if (!this.IsPostBack)
             {
                 // Databind is required to bind the localized resources.
                 this.DataBind();
             }
         }
         else
         {
             this.lblError.Text    = String.Format(GetText("USERNOTFOUND"), this._module.CurrentUserId.ToString());
             this.lblError.Visible = true;
         }
     }
 }