protected void PrepareGridAccounts() { if (this.activeControl.Visible) { PaginaBase page = this.Page as PaginaBase; this.gridAccounts.DataSource = ControladorShardAccount.GetAccounts(page.RecuperarLoginUsuarioLogado()).GetDataSet(); this.gridAccounts.DataBind(); } }
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")); }