![]() |
|
|
#1 (permalink) |
|
Devils Cabana Boy
Location: Central Coast CA
|
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>
__________________
Donate Blood! "Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen |
|
|
|
|
#3 (permalink) |
|
Devils Cabana Boy
Location: Central Coast CA
|
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:
<input name="txtdisc" type="text" size="80" value=<%=VNR(2)%>>
__________________
Donate Blood! "Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen Last edited by Dilbert1234567; 07-17-2004 at 05:18 PM.. |
|
|
|
|
#5 (permalink) |
|
Devils Cabana Boy
Location: Central Coast CA
|
nope did not work
Code:
<input name="txtdisc" type="text" size="80" value="<%=VNR(2)%>">
__________________
Donate Blood! "Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen |
|
|
|
|
#7 (permalink) |
|
Devils Cabana Boy
Location: Central Coast CA
|
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<%@ Language = VBscript %>
<%
'Get variables from the querystring
Item_ID = Request.Querystring("Item_ID")
SQLRPT="select * from Item where item_ID = " & Item_ID
set conndb = server.createobject("ADODB.Connection")
conndb.open "SQLStore"
set VNR=conndb.execute(SQLRPT)
%>
<%
'Get variables from the querystring
Item_ID = Request.Querystring("Item_ID")
SQLRPT="select Item_type from Item where item_ID = " & Item_ID
set conndb = server.createobject("ADODB.Connection")
conndb.open "SQLStore"
set Itype=conndb.execute(SQLRPT)
%>
<HTML>
<HEAD>
<TITLE><%=VNR(7)%>: <%=VNR(1)%></TITLE>
</HEAD>
<BODY bgcolor="white" text="black">
<p>
<form method="get" action="Product change.asp">
Unique ID: <%=VNR(0)%><BR>
<p>Catagory <br>
<%
SQLRPT="SELECT distinct Item_type from item"
set conndb = server.createobject("ADODB.Connection")
conndb.open "SQLStore"
set rptSet=conndb.execute(SQLRPT)
%>
<select name="Type" >
<% 'Loop through the recordset to make each entry in the list. %>
<Option value = ""></Option>
<% do while not rptSet.eof %>
<% if Itype(0) = rptSet(0) then %>
<Option value = "<%=rptSet(0)%>" selected><%=rptSet(0)%> </Option>
<% else %>
<Option value = "<%=rptSet(0)%>"><%=rptSet(0)%> </Option>
<% end if %>
<%rptSet.movenext
loop%>
</select>
<br>
<br>
Item Name:<br>
<input name="textfield" type="text" size="80" value=<%=VNR(1)%>>
<br>
</p>
<p>Item Discription:</p>
<input name="txtdisc" type="text" size="80" value=<%=VNR(2)%>>
<p><br>
Price:
<input name="txtprice" type="text" value=<%= VNR(3) %> >
</p>
<p> </p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>
<%=VNR(1)%>
<BR><br>
<%=VNR(2)%>
</BODY>
</HTML>
__________________
Donate Blood! "Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen |
|
|
|
|
#10 (permalink) |
|
Professor of Drinkology
|
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.
__________________
Blah. |
|
|
| Tags |
| asp or html, back, directory, dropping |
|
|