private void BindList() { Business.Campeonatos.Support.Campeonato business = new Business.Campeonatos.Support.Campeonato(base.UserName); IList <Framework.DataServices.Model.EntityBaseData> list = business.SelectAll(null); this.dtlCampeonatos.DataSource = list; this.dtlCampeonatos.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //Carregando todos os campeonatos Business.Campeonatos.Support.Campeonato campeonato = new Business.Campeonatos.Support.Campeonato(base.UserName); this.cboCobertura.DataSource = campeonato.SelectAll(null); this.cboCobertura.DataTextField = "Nome"; this.cboCobertura.DataValueField = "Nome"; this.cboCobertura.DataBind(); string mode = Request.QueryString["mode"]; if (string.IsNullOrEmpty(mode) && Request.QueryString["NomeBolao"] == null) { mode = ((int)Business.Util.ActionMode.Edit).ToString(); } ModeView = Business.Util.Mode.GetAction(mode); //Changing the mode view ChangeModeView(ModeView); string nomeBolao = CurrentBolao.Nome; if (Request.QueryString["NomeBolao"] != null) { nomeBolao = Request.QueryString["NomeBolao"]; } Business.Boloes.Support.Bolao bolao = new BolaoNet.Business.Boloes.Support.Bolao(base.UserName, nomeBolao); bolao.Load(); //BolaoData = (Model.Boloes.Bolao)bolao; ShowBolao(bolao); } }