Hai all
I am new to ASP. In my ASP project i am trying to populate a table with certain records that i fetched from a database table .. the code is as below

<%rs.movefirst
      DO  UNTIL rs.eof
          i = i + 1    
 %>
<TR>
     <td><%=i%></td>
    <td><A HREF =U_ViewTransDet.asp><%=rs(0)%></A></td>
    <td><%=rs(1)%></td>
    <td><%=rs(2)%></td>
</TR>

Here the second colum in my table is given as link
Let the column values be
1 234 a 23
2 267 g 24
3 290 f 21

The values 234, 267, 290 are displayed as links in the table. and when i click on the link 267
it shud be redirected to a page named "U_ViewTransDet.asp" along with the value 267.
How can i do this ? its very urgent .. plz help ..

Need to slightly alter your code from what you have to read as follows...

<td><a href="U_ViewTransDet.asp?id=<%=rs("Field_Id")%>">Name of link</a></td>

Hope that helps,
Rob.

<snipped>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.