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"> </td>
<td width="901"> </td>
</tr>
<tr>
<td width="106" height="382" valign="top"> </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.