ASP.NET - no se que esta mal...

 
Vista:

no se que esta mal...

Publicado por YoMero (21 intervenciones) el 06/08/2006 19:14:44
Muchas gracias por tu respuesta... pero desafortunadamente aun no funciona del todo... no se que este haciendo mal... te pongo el codigo para que lo revises... agradezco tu atencion...

este es el script para hacer las verificaciones de los id que se reciben y abrir la pagina correspondiente, unicamente estoy poniendo el de una pagina

<script runat="server">
Shared pagina, target As String
Sub Page_Load(ByVal obj As Object, ByVal e As EventArgs)
Dim id As String
'obtenemos el id del catalogo
id = Request.QueryString.Get("IdCat") 'EL ID DEL CATALOGO
target = "MiFrame" 'EL NOMBRE DEL IFRAME
'verificamos
If id = "1" Then
pagina = "http://" + Request.ServerVariables("HTTP_HOST") + "/CapaActivos/Catalogos/catOrganismos.aspx" 'LA PAGINA A ABRIR
Dim script As String = "<script language='javascript'> " & _
"var control = document.getElementById('" & target + "');" & _
"if(control != null) control.src='" + pagina + "';" & _
"<"+"/script>"
Page.RegisterStartupScript("Load", script)
End If
End Sub 'Fin Page_Load
</script>

este es el codigo html donde creo el iframe

<!-- InstanceBeginEditable name="Cuerpo" -->
<table width="100%" height ="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="100%" width="100%">
<iframe name="MiFrame" frameborder="0px" width="100%" height="100%" scrolling="no">
</iframe>
</td>
</tr>
</table>
<!-- InstanceEndEditable -->
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder