Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/12/2012, 08:37
maialenlopez
 
Fecha de Ingreso: abril-2012
Mensajes: 449
Antigüedad: 12 años, 1 mes
Puntos: 7
Respuesta: Dato de un aspx a otro aspx al darle a un boton

No me sale, me he ido guiando de lo que me has mandado pero no lo consigo

en Identificador.aspx.vb tengo lo siguiente:
Código vb.net:
Ver original
  1. Public Class Identificador
  2.     Inherits System.Web.UI.Page
  3.  
  4.     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  5.  
  6.     End Sub
  7.  
  8.     Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  9.         Dim numeroIdentificador As String
  10.         If TxtIdNumIdentificador.Text = "" Then
  11.             ValidacionAsterisco23.Text = "*"
  12.             validacion4.Text = "Identificador incorrecto"
  13.         Else
  14.             'Dependiendo del identificador, Me carga una pagin u otra
  15.             numeroIdentificador = TxtIdNumIdentificador.text
  16.             Response.Redirect("VRHojaLiquidacionGastos.aspx")
  17.         End If
  18.     End Sub
  19. End Class

Y en VRHojaLiquidacionGastos.aspx.vb tengo lo siguiente
Código vb.net:
Ver original
  1. Public Class VRHojaLiquidacionGastos
  2.     Inherits System.Web.UI.Page
  3.  
  4.     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  5.  
  6.         Dim numHoja As String
  7.        
  8.         [B]numHoja = Identificador.numeroIdentificador [/B]
  9.     End Sub
  10. End Class

Lo que esta en negrita no me lo reconoce, no se como hacerlo.
__________________
Gracias por todo;

Un saludo