View Full Version : Include file/virtual in a Response.Write?

07-11-2004, 10:07 PM

I trying to code a page that automaticly loads the right page depending on the weeknumber, so far I got this 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.


07-11-2004, 10:34 PM
I saw what I did wrong when I looke at my questions title lol.

Ofcourse I have to do it with Server.Execute

<% Server.Execute "articles/" & year(now()) & "/" & DatePart("ww", now()) & ".asp" %>

don't ask me how I could miss that because I don't know ;)