![]() |
ASP/HTML dropping back a directory
im using
Code:
<p><!--#include file="sale.inc"--><br> it exsest in the root directory and is used by some ASP pages there, i then have a folder and want an ASP page to use it as well Root:\sale.inc Root:\1.asp Root:\2.asp Root:\folder\3.asp i cant seem to get 3.asp to use it, i need the code to have it jump back a directory, i tried Code:
<p><!--#include file="..sale.inc"--><br> Code:
<p><!--#include file="cd ..sale.inc"--><br> |
<p><!--#include file="../sale.inc"--><br>
<p><!--#include file="cd ../sale.inc"--><br> You may want to look into include virtual if the files are below your default directory. |
ah i forgot the slash thanks
ok i have a new question for you guys, same topic of ASP VBS im trying to load a input box with some text from my SQL server Code:
|
Quote:
Code:
value="<%=VNR(2)%>" |
nope did not work
Code:
<input name="txtdisc" type="text" size="80" value="<%=VNR(2)%>"> |
Show more code then, 'cause it works fine for me.
|
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
Ummmm...You don't have quotes around the <%=VNR(2)%> in that code.
|
dream weaver takes them off.
|
The string value of the text probably contains quotation marks. Try using the ASP replace() function to change all the single quotation marks to double, or their ASCII equivalent (the & plus a number).
As far as DM taking the quotes out, insert them with notepad and see what you get. I'll experiment with this tomorrow and see what I get. |
Try using a textarea tag instead. You're free of funky syntax errors under those conditions.
|
All times are GMT -8. The time now is 05:24 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project