Ver Mensaje Individual
  #8 (permalink)  
Antiguo 05/07/2011, 19:50
nanyrba
 
Fecha de Ingreso: julio-2011
Mensajes: 17
Antigüedad: 13 años, 7 meses
Puntos: 1
Respuesta: problemas con parametros en Response.Redirect

Cita:
Iniciado por Aquaventus Ver Mensaje
postea el codigo de como lo envias tu parametros, para poderte decir como debes leerlos o que estas haciendo mal.
envio asi
Código ASP:
Ver original
  1. Dim row As GridViewRow = GridView1.SelectedRow
  2.        
  3.         Dim myParams As String = "grado=" & row.Cells(2).Text & "&area=" & row.Cells(3).Text & "&auditor=" & row.Cells(4).Text & "&noRef=" & row.Cells(5).Text & "&carRef=" & row.Cells(6).Text & "&fecha=" & row.Cells(7).Text & "&descripcion=" & row.Cells(8).Text & "&respArea=" & row.Cells(9).Text & "&fechaDR=" & row.Cells(10).Text & "&fechaDA=" & row.Cells(11).Text & "&corecion=" & row.Cells(12).Text
  4.         myParams = Server.UrlEncode(myParams)
  5.        
  6.         Response.Redirect("impGestionIn.aspx?" + myParams)

recibo en mi mostrarReporte.aspx de la siguiente forma

Código ASP:
Ver original
  1. Dim grado As String = Server.UrlDecode(Request.QueryString("grado"))
  2.         Me.Label30.Text = grado
  3.  
  4.         Dim area As String = Server.UrlDecode(Request.QueryString("area"))
  5.         Me.Label31.Text = area
  6.  
  7.         Dim auditor As String = Server.UrlDecode(Request.QueryString("auditor"))
  8.         Me.Label33.Text = auditor
  9.  
  10.         Dim noRef As String = Server.UrlDecode(Request.QueryString("noRef"))
  11.         Me.Label34.Text = noRef
  12.  
  13.         Dim carRef As String = Server.UrlDecode(Request.QueryString("carRef"))
  14.         Me.Label36.Text = carRef
  15.  
  16.         Dim fecha As String = Server.UrlDecode(Request.QueryString("fecha"))
  17.         Me.Label37.Text = fecha
  18.  
  19.         Dim descripcion As String = Server.UrlDecode(Request.QueryString("descripcion"))
  20.         'Me.TextBox4.Text = descripcion
  21.         Me.TextBox18.Text = descripcion
  22.  
  23.         Dim respArea As String = Server.UrlDecode(Request.QueryString("respArea"))
  24.         Me.Label38.Text = respArea
  25.  
  26.         Dim fechaDR As String = Server.UrlDecode(Request.QueryString("fechaDR"))
  27.         Me.Label39.Text = fechaDR
  28.  
  29.         Dim auditor1 As String = Server.UrlDecode(Request.QueryString("auditor"))
  30.         Me.Label40.Text = auditor1
  31.  
  32.         Dim fechaDA As String = Server.UrlDecode(Request.QueryString("fechaDA"))
  33.         Me.Label41.Text = fechaDA
  34.  
  35.         Dim corecion As String = Server.UrlDecode(Request.QueryString("corecion"))
  36.         Me.TextBox6.Text = corecion



probe tb con HttpUtility.HtmlDecode y me tira el mismo error