Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/08/2006, 16:16
Avatar de richard20
richard20
 
Fecha de Ingreso: marzo-2006
Mensajes: 139
Antigüedad: 19 años, 1 mes
Puntos: 0
Include de acuerdo a variable en asp.

Estimados,
Estoy comenzando con ASP y lo que necesito hacer es un include que se riga por una variable como lo hacia en php abajo puse el código de cual es la idea espero me puedan ayudar con esto o indicarme de que manera debo hacerlo en asp.

Código HTML:
<table width="100%" height="314" border="1">
  <tr>
    <td width="106" height="23">&nbsp;</td>
    <td width="901">&nbsp;</td>
  </tr>
  <tr>
    <td width="106" height="382" valign="top">&nbsp;</td>
    <td>
	<%
	Option Explicit
	Dim pag 
	if Request.QueryString("pag")="" then
			pag="inicio.asp"
	else
			pag=Request.QueryString("pag") & ".asp"
	end if
	%>
	<!--#include file=<%=pag%>--> 
	</td>
  </tr>
</table> 
Desde ya muchas Gracias.
__________________
-.No Sueñes tu Vida, Vive tus Sueños.-