dottedquad
09-18-2005, 08:59 PM
<%
Select Case Request.QueryString("Section")
%>
<% Case "history" %>
<!--#include file = "history.asp"-->
<% Case "forsale" %>
<!--#include file = "forsale.asp"-->
<% End Select %>
I'm a total beginner at ASP. I coded in PHP before but started to move over to ASP a tad.
Well, what I'm trying to do is use the URL to include certain pages(code) in a section of my web page. In PHP it's was as easy as <?php include($_GET['Section'] . ".php"); ?> excuse if that syntax is incorrect I'm a bit rusty.
Unfortunately it's not that simple in ASP. It takes a few more steps to accomplish what I want to do. The syntax above is what I'm trying to use to get it to work but that's not working. Could anyone help me out? Or help me out on another route I should go to accomplish this?
Select Case Request.QueryString("Section")
%>
<% Case "history" %>
<!--#include file = "history.asp"-->
<% Case "forsale" %>
<!--#include file = "forsale.asp"-->
<% End Select %>
I'm a total beginner at ASP. I coded in PHP before but started to move over to ASP a tad.
Well, what I'm trying to do is use the URL to include certain pages(code) in a section of my web page. In PHP it's was as easy as <?php include($_GET['Section'] . ".php"); ?> excuse if that syntax is incorrect I'm a bit rusty.
Unfortunately it's not that simple in ASP. It takes a few more steps to accomplish what I want to do. The syntax above is what I'm trying to use to get it to work but that's not working. Could anyone help me out? Or help me out on another route I should go to accomplish this?