protected void Change_CategoriaPai(Object sender, EventArgs e) { DropCategoriaFilho.Items.Clear(); _ler = new LerSelect(); var DtCateFilho = _ler.LerDropCategoriaFilho(DropCategoriaPai.SelectedItem.Value); if (DtCateFilho != null) { DropCategoriaFilho.DataTextField = "Categoria Des"; DropCategoriaFilho.DataValueField = "Categoria Val"; DropCategoriaFilho.DataSource = DtCateFilho.ValDataTable; DropCategoriaFilho.DataBind(); DropCategoriaFilho.AppendDataBoundItems = true; } }
protected void Change_CategoriaPai(Object sender, EventArgs e) { DropCategoriaFilho.Items.Clear(); DropProduto.Items.Clear(); _ler = new LerSelect(); var DtCateFilho = _ler.LerDropCategoriaFilho(DropCategoriaPai.SelectedValue.ToString()); if (DtCateFilho != null) { DropCategoriaFilho.DataTextField = "Categoria Des"; DropCategoriaFilho.DataValueField = "Categoria Val"; DropCategoriaFilho.DataSource = DtCateFilho.ValDataTable; DropCategoriaFilho.DataBind(); DropCategoriaFilho.AppendDataBoundItems = true; DropCategoriaFilho.Enabled = true; } LabelTituloPopup.Text = "Veja como é fácil"; ImgPopup.Attributes.Add("title", "Anuncie agora mesmo"); ImgPopup.ImageUrl = "../Images/anuncio.jpg"; }