protected void Reload() { _ler = new LerSelect(); var Dt = _ler.LerAnuncio(Request.ServerVariables["AUTH_USER"].ToString()); if (Dt != null) { GridAnuncios.DataSource = Dt.ValDataTable; GridAnuncios.DataBind(); } _ler = new LerSelect(); var DtLoja = _ler.LerDropLojaCad(); if (DtLoja != null && DropFornecedor.Items.Count.ToString() == "0") { DropFornecedor.DataTextField = "Loja Des"; DropFornecedor.DataValueField = "Loja Val"; DropFornecedor.DataSource = DtLoja.ValDataTable; DropFornecedor.DataBind(); DropFornecedor.AppendDataBoundItems = true; } _ler = new LerSelect(); var DtCatePai = _ler.LerDropCategoriaPai(); if (DtCatePai != null && DropCategoriaPai.Items.Count.ToString() == "0") { DropCategoriaPai.DataTextField = "Categoria"; DropCategoriaPai.DataSource = DtCatePai.ValDataTable; DropCategoriaPai.DataBind(); DropCategoriaPai.AppendDataBoundItems = true; } _ler = new LerSelect(); var DtID = _ler.LerDropIDAnuncio(); if (DtID != null && DropID.Items.Count.ToString() == "0") { DropID.DataTextField = "ID Des"; DropID.DataValueField = "ID Val"; DropID.DataSource = DtID.ValDataTable; DropID.DataBind(); DropID.AppendDataBoundItems = true; } this.TextDataInicio.Attributes.Add("autocomplete", "off"); this.TextDataFim.Attributes.Add("autocomplete", "off"); this.TextPreco.Attributes.Add("autocomplete", "off"); }