Jump to content

how to dynamic inlude files ?

Recommended Posts

Hi all, im a newby to asp and i cant seem to dynamicli include files, this is what i got:templatestr = "<!-- #include virtual=" & template_link & "-->"response.write templatestrthe problem is that it doesnt show anything, if i look on the page source it says:<!-- #include virtual=/site/design2/index_home.asp-->notice: the double quotes are missing but i dont know how to place the quotes there since it does not react to: 34;any help would be appreciated :)

Edited by modret
Link to post
Share on other sites
  • 3 weeks later...
  • 2 weeks later...

Thank for the help, but the server.execute method does not work for me, unlike the include method the .execute starts an entire new file.Because of this the variables are not passed trough and the server.transfer method should be able to do this, but again unlike the includemethod the record sets are gone because it closes the the file that called the statement.Anyone else with a solution? =D

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...