mordret 0 Posted January 28, 2011 Report Share Posted January 28, 2011 (edited) 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 January 28, 2011 by modret Quote Link to post Share on other sites
mordret 0 Posted February 1, 2011 Author Report Share Posted February 1, 2011 Still in a pich here Quote Link to post Share on other sites
justsomeguy 1,135 Posted February 1, 2011 Report Share Posted February 1, 2011 Check the first result here:http://www.google.com/search?client=opera&...channel=suggest Quote Link to post Share on other sites
mordret 0 Posted February 1, 2011 Author Report 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 Quote Link to post Share on other sites
justsomeguy 1,135 Posted February 1, 2011 Report 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. Quote Link to post Share on other sites
mordret 0 Posted February 2, 2011 Author Report Share Posted February 2, 2011 ok, still thanks for tying Quote Link to post Share on other sites
shaffiq_fiq88 0 Posted February 18, 2011 Report 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. Quote Link to post Share on other sites
mordret 0 Posted February 19, 2011 Author Report Share Posted February 19, 2011 Thanks, coulnd get it to work staight away, but ill look into it tonight. Quote Link to post Share on other sites
mordret 0 Posted March 1, 2011 Author Report 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.