CLR: .Net / Mono / Boo / Otros CLR > ASP .NET

 Hola, Tengo Una Duda

(1/1)

Eman:
hola, bueno ahora ando tratando de usar lo que es el asp.net, la vdd me parece intereasnte pero no puedo ni hacer lo mas basico jajaja, no puedo hacer un post a otra pagina y recivir los valores del form, aqui les dejo el codigo por si encuentran algun error me lo agan saber, gracias


--- Código: Text --- <script runat="server">sub Page_Load  if not Page.IsPostBack then    dim opciones= new ArrayList    opciones.Add("Nueva Insersion")    opciones.Add("Modificar una Forma")    opciones.TrimToSize()        opc.DataSource=opciones  opc.DataBind()  end ifend sub   sub carga_id(s as Object,e as EventArgs)  if opc.SelectedItem.Text="Modificar una Forma" then    label1.visible=true    id.visible=true  'id.Text=("hol")    else    id.visible=false    label1.visible=false  end if  end sub     </script> <form runat="server" action="edo_resultados.asp" method="post"><table border="0" align="center" title="login table" bgcolor="#009933"><tr>  <td width="20%">  <asp:Label runat="server" ID="nombre" Text="<b>Nombre:</b>" /><br>  <asp:Label runat="server" ID="pass" Text="<b>Password</b>" />       </td>  <td align="center">  <br>  <asp:TextBox runat="server" ID="user" size="15" /><br>  <asp:TextBox runat="server" ID="password" TextMode="Password" size="15"/><br><br>  </td></tr><tr>  <td colspan="2">   <asp:Label runat="server" Text="<b>Elije una Opcion</b>" />  <asp:DropDownList runat="server" ID="opc" AutoPostBack="true"  OnSelectedIndexChanged="carga_id"  /><br>  <asp:Label runat="server" ID="label1" Text="<b>Pon el numero de folio:</b>" Visible="false"/>   <asp:TextBox runat="server" ID="id" Visible="false" size="4"/><br>  <p align="center"> <input type="submit" value="OK" > </p>    </td></tr></table></form>  

sergiotarrillo:
Hay varias diferencias en el uso de ASP.NET y asp. No es necesario colocar el action al form.

Revisa este ejemplo: Creando un sitio Web

Que ide estas usando?, Visual Web Developer Express es una herramienta gratuita.

Saludos,

Navegación

[0] Índice de Mensajes

Ir a la versión completa