Includes

Results 1 to 2 of 2

Thread: Includes

  1. #1
    Strider Guest

    Default Includes

    I want to do something like this:<BR>address: http://server/default.asp?page=index<BR><BR>then I use<BR>&#060;% <BR>page = request.querystring("page")<BR>If page = "index" Then<BR>Response.Redirect("index.asp")<BR>End If<BR>%&#062;<BR><BR>However, I don&#039t want the URL to change (I still want it to say default.asp?page=index, instead of index.asp).<BR><BR>Is this accomplishable?<BR>

  2. #2
    Simhan Guest

    Default RE: Includes

    If I figure out correctly, your question is You want to dynamically include a file.<BR><BR>well<BR><BR>page = request.querystring("page")<BR><BR>&#060;%SELECT CASE page<BR> CASE index %&#062;<BR> &#060;!--#include virtual="whatever1.asp"--&#062;<BR> &#060;%CASE index1 %&#062;<BR> &#060;!--#include virtual="whatever2.asp"--&#062;<BR> &#060;%CASE index2 %&#062;<BR> &#060;!--#include virtual="whatever3.asp"--&#062;<BR>&#060;%END SELECT%&#062;<BR><BR>If this is not what you have asked, just reframe your question

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •