Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2003
    Location
    Stockholm, Sweden
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Include file/virtual in a Response.Write?

    Hi,

    I trying to code a page that automaticly loads the right page depending on the weeknumber, so far I got this code:

    Code:
    <% Response.Write "<!--#Include Virtual=""articles/" & year(now()) & "/" & DatePart("ww", now()) & ".asp""-->" %>
    but when I try the code all I get is a empty page, why?
    I also tried it with file instead of virtual with the same result.

    /Speedy

  • #2
    Regular Coder
    Join Date
    May 2003
    Location
    Stockholm, Sweden
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I saw what I did wrong when I looke at my questions title lol.

    Ofcourse I have to do it with Server.Execute

    Code:
    <% Server.Execute "articles/" & year(now()) & "/" & DatePart("ww", now()) & ".asp" %>
    don't ask me how I could miss that because I don't know

    /Speedy


  •  

    Posting Permissions

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