mordret Posted January 28, 2011 Share Posted January 28, 2011 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 Link to comment Share on other sites More sharing options...
mordret Posted February 1, 2011 Author Share Posted February 1, 2011 Still in a pich here Link to comment Share on other sites More sharing options...
justsomeguy Posted February 1, 2011 Share Posted February 1, 2011 Check the first result here:http://www.google.com/search?client=opera&...channel=suggest Link to comment Share on other sites More sharing options...
mordret Posted February 1, 2011 Author Share Posted February 1, 2011 Thanks for the response, but i have tried this before but for some reason it does not reconize the asp code:The include file '<%=template_link%>' was not found.i have searched the web, tried multiple solutions, but none works Link to comment Share on other sites More sharing options...
justsomeguy Posted February 1, 2011 Share Posted February 1, 2011 I've never done that before, so if the online examples aren't working I'm not sure what to say. Link to comment Share on other sites More sharing options...
mordret Posted February 2, 2011 Author Share Posted February 2, 2011 ok, still thanks for tying Link to comment Share on other sites More sharing options...
shaffiq_fiq88 Posted February 18, 2011 Share Posted February 18, 2011 ASP does not support including file dynamically but you can execute it dynamicly by using Server.execute(file).Please try. Link to comment Share on other sites More sharing options...
mordret Posted February 19, 2011 Author Share Posted February 19, 2011 Thanks, coulnd get it to work staight away, but ill look into it tonight. Link to comment Share on other sites More sharing options...
mordret Posted March 1, 2011 Author Share Posted March 1, 2011 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 comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.