...

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



Speedy
07-11-2004, 11:07 PM
Hi,

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.

/Speedy

Speedy
07-11-2004, 11: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 ;)

/Speedy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum