Ejemplo n.º 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();
            }
        }
        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();
            }
        }
Ejemplo n.º 3
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();
                }
            }
        }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     this._module = base.Module as ProfileModule;
     if (this._module.CurrentUserId > 0)
     {
         Cuyahoga.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;
         }
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     this._module = base.Module as ProfileModule;
     if (this._module.CurrentUserId > 0)
     {
         Cuyahoga.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;
         }
     }
 }
        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();
                }
            }
        }