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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my link

Status
Not open for further replies.

playerx

Technical User
Joined
Feb 23, 2006
Messages
10
Location
US
Can someone look at this and see if I have something wrong


While ((Repeat1__numRows <> 0) AND (NOT rc2.EOF))
%>
<tr>
<td> <a href="/Database insert/File.asp?quot_id=" & rc2("quot_id") & ">" </a></td> this is the link I am have problems with
<td><%=(rc2.Fields.Item("quot_id").Value)%></td>
<td><%=(rc2.Fields.Item("qte_owner").Value)%></td>
<td><%=(rc2.Fields.Item("qte_name").Value)%></td>
<td><%=(rc2.Fields.Item("qte_size").Value)%></td>
<td><%=(rc2.Fields.Item("qte_type").Value)%></td>

</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rc2.MoveNext()
Wend
%>
 
It looks like some of your server-side script is not properly delimitted... the client-side is mixed with the server side... so the ASP interprettor will just pass the unprocessed text to the browser client.


Change it from this:[tt]
<a href="/Database insert/File.asp?quot_id=[highlight]" & rc2("quot_id") & ">"[/highlight] </a></td> [/tt]



To this:[tt]
<a href="/Database insert/File.asp?quot_id=[red][highlight]<%=[/highlight] rc2("quot_id") [highlight]%>[/highlight]">[/red]</a></td>
[/tt]


I suspect my explanation above wasn't clear, please reply if you'd like me to try again.
 
I modified that, but I get nothing to select.

there is no link to select
 
well thats because you have nothing there look try this

Code:
<td><a href="/Database insert/File.asp?quot_id=<%= rc2("quot_id") %>">hello world</a></td>
 
do this:

<a href="/Database insert/File.asp?quot_id=<%= rc2("quot_id") %>">SELECT LINK</a></td>

-DNG
 
or even better:

<a href="/Database insert/File.asp?quot_id=<%= rc2("quot_id") %>"><%= rc2("quot_id") %></a></td>

-DNG
 
you could easily replace with a db value

Code:
<td><a href="/Database insert/File.asp?quot_id=<%= rc2("quot_id") %>"><%=rc2("qte_name")%></a></td>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top