Beispiel #1
0
 /// <summary>
 /// Handles the Load event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ProfileControl1.FillForm(Global.LoggedInUser);
     }
     StatusLabel.Visible = false;
 }
Beispiel #2
0
 /// <summary>
 /// Handles the Load event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UserService service = new UserService();
         ProfileControl1.AdminView = true;
         ProfileControl1.FillForm(service.GetByID(UserID));
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ProfileControl1.Editable = false;
                // get the developer
                UserService service = new UserService();
                User        dev     = service.GetByID(DevID);

                // fill the form
                ProfileControl1.FillForm(dev);

                // bind complevels
                ddlComp.DataSource = Enum.GetNames(typeof(CompLevel));
                ddlComp.DataBind();
                ddlComp.Items.Insert(0, String.Empty);

                // select dev's comp level
                //ListItem item = ddlComp.Items.FindByValue(dev.Competency.ToString());
                //if (item != null)
                //    item.Selected = true;
            }
        }