Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/01/2005, 10:55
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 22 años, 4 meses
Puntos: 50
Hola y bienvenido..

Solo te recomiendo que cuando hagas un post especifiques cual es el lenguaje con el que quieres el ejemplo (c#, vb.net, etc)

Lo podrías hacer así:

en tu modo html sería:

Cita:
<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack=True></asp:DropDownList>
Y en tu codebehind (usando vb.net) sería:

Cita:
Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
Response.Write("Has seleccionado = " & DropDownList1.SelectedItem.Text)
End Sub
Espero te sirva.

Salu2
__________________
Nadie roba nada ya que en la vida todo se paga . . .

Exentrit - Soluciones SharePoint & Net