Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LINK NOT WORKING 1

Status
Not open for further replies.

gsc123

Programmer
Jan 24, 2008
197
Hi

Anyone see why my link created is not a proper link, cant see wood for the trees

do until rstemp.eof
for i = 0 to rstemp.fields.count - 1
v=rstemp(i)
if isnull(v) then v = " "
id = rstemp(0)
select case i
case 0
str = "<td><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><a href='pt_viewitem.asp?idproduct="&id&">" + CStr(v) + "</td><td><font face='Verdana, Arial, Helvetica, sans-serif' size='1'>" + CStr(v) + "</a></font></td>"
case else
str = "<td><font face='Verdana, Arial, Helvetica, sans-serif' size='1'>" + CStr(v) + "</td>"
end select

if i = 3 then
Response.Write str
str = "</tr><tr>"
end if
Response.Write str
Next
rstemp.MoveNext
loop
 
Maybe
Code:
str = "<td><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><a href='pt_viewitem.asp?idproduct="&id&">" + CStr(v) + "[b][COLOR=blue]</a>[/color][/b]</td><td><font face='Verdana, Arial, Helvetica, sans-serif' size='1'>" + CStr(v) + "[s][COLOR=red]</a>[/color][/s]</font></td>"
 
Nice try but no ... i'm baffled
 
Ahh, looks like a missing single quote also
Code:
str = "<td><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><a href='pt_viewitem.asp?idproduct="&id&"[COLOR=blue yellow][b]'[/b][/color]>" + CStr(v) + "</a></td><td><font face='Verdana, Arial, Helvetica, sans-serif' size='1'>" + CStr(v) + "</font></td>"
 
Your the man full points, give this man a card!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top