Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     presenter = ManagementDetailsBoxPresenter.Create(this);
     if (!IsPostBack)
     {
         presenter.LoadManagementDetails();
     }
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            presenter              = ManagementDetailsBoxPresenter.Create(this);
            nameSection.Visible    = showName;
            addressSection.Visible = showAddress;
            gstSection.Visible     = showGst;

            if (!IsPostBack)
            {
                presenter.LoadManagementDetails();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {     //todo: investigate why this is being called 4x aside 4x call of page_load in logon.aspx
            if (presenter == null)
            { //made static so we create, hit database and load management details only once
                presenter = ManagementDetailsBoxPresenter.Create(this);
                if (!IsPostBack)
                {
                    presenter.LoadManagementDetails();
                }
            }

            return;
        }