Include File question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Include File question

Hybrid View

  1. #1
    Beginner Guest

    Include File question


    Does anybody know how to Include a dynamic file?
    That means if user enter some name, I can include the file
    with this name. I use
    <!--#INCLUDE FILE=<%=includefilename%>.asp-->
    but does not work.

    Please help
    Thanks

  2. #2
    Kris Eiben Guest

    Re: Include File question

    Includes are processed before ASP, so that won't work. Check
    www.aspfaq.com, IIRC they've got a writeup of workarounds for this.

    Beginner wrote in message <3a27aa98$1@news.devx.com>...
    >
    >Does anybody know how to Include a dynamic file?
    >That means if user enter some name, I can include the file
    >with this name. I use
    ><!--#INCLUDE FILE=<%=includefilename%>.asp-->
    >but does not work.




  3. #3
    mario Guest

    Re: Include File question


    "Beginner" <htpai@yahoo.com> wrote:
    >
    >Does anybody know how to Include a dynamic file?
    >That means if user enter some name, I can include the file
    >with this name. I use
    ><!--#INCLUDE FILE=<%=includefilename%>.asp-->
    >but does not work.
    >
    >Please help
    >Thanks



    filename = request ("file_name")
    <!--#INCLUDE FILE="<%=filename"%>"-->



  4. #4
    Beginner Guest

    Re: Include File question


    This would't work.
    Thanks Kris.
    I've got the solution on:
    http://www.aspfaq.com/faq/faqShow.asp?fid=10

    "mario" <sss@noonr.vom> wrote:
    >
    >"Beginner" <htpai@yahoo.com> wrote:
    >>
    >>Does anybody know how to Include a dynamic file?
    >>That means if user enter some name, I can include the file
    >>with this name. I use
    >><!--#INCLUDE FILE=<%=includefilename%>.asp-->
    >>but does not work.
    >>
    >>Please help
    >>Thanks

    >
    >
    >filename = request ("file_name")
    ><!--#INCLUDE FILE="<%=filename"%>"-->
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center