Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/08/2011, 19:39
Avatar de skyz
skyz
 
Fecha de Ingreso: abril-2010
Mensajes: 170
Antigüedad: 14 años
Puntos: 1
Exclamación Como saber si se presiono un hipervinculo despues de un codigo javascript

tengo este problema, no puedo mandar variables en un hipervinculo, despues de colocar un codigo javascript en dichoivinculo.

El codigo es el siguiente:

Código HTML:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Pagina7.aspx.vb" Inherits="Pagina7" %>

<%  Dim valor As String
    valor = Request.QueryString("boton")
    
    If (valor = "Enviar") Then
        Response.Write(Request.QueryString("Text1") & "<br>")
        Response.Write(Request.QueryString("Text2") & "<br>")
        Response.Write(Request.QueryString("Text3") & "<br>")
    End If
        
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" name="form1" action="" method="get">
    <div>
    
        <b> Metodo GET, enviando las variables en la misma pagina</b><br />
        <br />
        <br />
        Nombre:
        <input name="Text1" type="text" /><br />
        Apellido:
        <input name="Text2" type="text" /><br />
        Edad:
        <input name="Text3" type="text" /><br />
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="boton" type="submit" value="Enviar" /><br />
        <br />
        <a href="javascript:document.form1.submit()">Enviar Formulario por Javascript 
        Metodo GET</a></div>
    </form>
</body>
</html> 
Estoy programando por el lado del servidor en el lenguaje de programacion de asp .net (Visual Basic .Net), al apretar un boton agarro todo el formulario en la misma pagina y muestro la informacion de los textbox's respectivos, pero nose como agarrar los valores al apretar un hipervinculo luego del codigo javascript:

Código:
javascript:document.form1.submit() 
Una ayudita porfavor