Ver Mensaje Individual
  #14 (permalink)  
Antiguo 10/07/2004, 02:04
diapueen
 
Fecha de Ingreso: mayo-2004
Mensajes: 17
Antigüedad: 20 años
Puntos: 0
Si te escribo el codigo y el error

Codigo

<%@ Page Language="VB" %>
<script runat="server">

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
textInput.Attributes.Add("ONKEYUP", "lookupItem(this,this.form.selectInput)")
selectInput.Attributes.Add("ONCHANGE", "doSelectChange(this, this.form.textInput)")
End If
End Sub

</script>

<html>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P>
<asp:textbox id="textInput" runat="server"></asp:textbox></P>
<P>
<asp:ListBox id="selectInput" runat="server" Width="184px" Height="112px">
<asp:ListItem Value="1">Uno</asp:ListItem>
<asp:ListItem Value="2">dOS</asp:ListItem>
<asp:ListItem Value="3">Tres</asp:ListItem>
<asp:ListItem Value="4">Cuatro</asp:ListItem>
<asp:ListItem Value="5">Enero</asp:ListItem>
</asp:ListBox></P>
</SPAN>
</form>
</FORM>
</body>
</HTML>

Error

Linea 12
Car 1
Error Se esperaba un objeto
Codigo 0

Un saludo y gracias.

PD: Seguro que será una tonteria.