Volevo sapere se a voi funziona l'evento "OnSelectedIndexChanged" in una ListBox !!!
Vi posto il codice:
Mi sembra molto strano che non funzioni questo evento !!!codice:<% @ Page Language="VB" %> <script runat=server> sub cambio(obj as Object, e as EventArgs) Response.write(pippo.SelectedItem.text) end sub </script> <html> <head> <title>LISTA</title> </head> <body> <form runat="server"> <asp:ListBox ID="pippo" Runat="server" SelectionMode="Single" Rows="1" OnSelectedIndexChanged="cambio"> <asp:ListItem Value="1">UNO</asp:ListItem> <asp:ListItem Value="2">DUE</asp:ListItem> <asp:ListItem Value="3">TRE</asp:ListItem> </asp:ListBox> </form> </body> </html>

Rispondi quotando
