caio.hps 0 Denunciar post Postado Novembro 24, 2009 ola estou tentando popular um outro drop down list SelectedIndexChanged mas nao estou conseguindo ..sou iniciante e olha o erro que me traz CS1061: 'ASP.incluivendas_aspx' does not contain a definition for 'DropDownList6_SelectedIndexChanged' and no extension method 'DropDownList6_SelectedIndexChanged' accepting a first argument of type 'ASP.incluivendas_aspx' could be found (are you missing a using directive or an assembly reference?) e ao que me parece o meu dropdownlist esta perdendo a referencia preciso colocar algum assembly? olha o meu codigo : pagina.aspx <asp:DropDownList ID="DropDownList6" runat="server" DataTextField="desc_produto" DataValueField="desc_produto" CssClass="textbox" onselectedindexchanged="DropDownList6_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList> pagina.aspx.cs protected void DropDownList6_SelectedIndexChanged(object sender, EventArgs e) { try { tb_estoque Objpega = dc.tb_estoques.First(c => c.desc_produto == DropDownList6.SelectedItem.Text.ToString()); DropDownList7.SelectedItem.Text = Objpega.unimed_produto; } catch (Exception ex) { lblmsg.Text = ex.Message; } } se alguem puder me ajudar informações que podem ajudar... estou usando Masterpage estou usando linq por favor me ajudem Compartilhar este post Link para o post Compartilhar em outros sites
quintelab 91 Denunciar post Postado Novembro 25, 2009 alguem? Sem fazer Up!! Aqui funcionou normal, delete seu Drop e crie novamente. Abraços... Compartilhar este post Link para o post Compartilhar em outros sites
caio.hps 0 Denunciar post Postado Novembro 25, 2009 alguem? Sem fazer Up!! Aqui funcionou normal, delete seu Drop e crie novamente. Abraços... aqui ainda nao funcionou..mesmo deletando o drop e colocando outro Compartilhar este post Link para o post Compartilhar em outros sites
Tiago Cosmai 0 Denunciar post Postado Janeiro 6, 2010 alguem? Sem fazer Up!! Aqui funcionou normal, delete seu Drop e crie novamente. Abraços... aqui ainda nao funcionou..mesmo deletando o drop e colocando outro Tenta Colocar seu código (ASP.NET) dentro de um update panel e por fim no evento page_load do codebihide coloque o seguinte código: protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) return; InicializeControl(); } Compartilhar este post Link para o post Compartilhar em outros sites