Exemplo n.º 1
0
 protected void PrepareGridAccounts()
 {
     if (this.activeControl.Visible)
     {
         PaginaBase page = this.Page as PaginaBase;
         this.gridAccounts.DataSource = ControladorShardAccount.GetAccounts(page.RecuperarLoginUsuarioLogado()).GetDataSet();
         this.gridAccounts.DataBind();
     }
 }
Exemplo n.º 2
0
        protected void PrepareViewItems()
        {
            this.ddlAccount.DataSource     = ControladorShardAccount.GetAccounts(base.RecuperarLoginUsuarioLogado()).GetDataSet();
            this.ddlAccount.DataValueField = "IdUsuario";
            this.ddlAccount.DataTextField  = "Login";
            this.ddlAccount.DataBind();

            this.ddlAccount.Items.Insert(0, new ListItem("..:: No account to select ::..", "0"));
        }