Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2007, 11:18 AM
ppenn
Guest
 
Posts: n/a
Default Hyperlink in asp page

I have a asp page that I did sometime ago that sets a hyperlink onto a database field as follows:

Response.Write "<TR bgcolor='"&bg&"'><TD><a href=""ContractOperator.asp?objOpID=" & oRS("Operator") & """>" & oRS("Operator") & " </a></TD>" _
&"<TD>" & objChassis & "</TD>" _
&"<TD>" & objMake & "</TD>" _
&"<TD>" & objType & "</TD>" _
&"<TD>" & objEngine & "</TD>"

I am in the process of creating new pages and have coded as follows:

<TD width="25%" align="center"><%= oRs("Operator") %></TD>
<TD width="25%" align="center"><%= oRs("REG NO") %></TD>
<TD width="25%" align="center"><%= oRs("Depot Based") %></TD>
<TD width="25%" align="center"><%= oRs("CONT TYPE") %></TD>
<TD width="25%" align="center"><%= oRs("START DATE") %></TD>
<TD width="25%" align="center"><%= oRs("EXPIRY DATE") %></TD>

What I cannot seem to get my head focused on is how to put the hyperlink into the second set of code

I hope that makes sense, its probably simple and I am missing something very easy - hope someone can help

Thanks very much

PP :)
 
Old September 24th, 2007, 01:19 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii PP!!
i think u r trying do like;
<TD width="25%" align="center">
<a href="ContractOperator.asp?objOpID=<%=oRS("Operato r")%>">
 <%= oRs("Operator") %>
</a></TD>

HOpe this will help you

Cheers :)

vinod
 
Old September 27th, 2007, 02:09 PM
ppenn
Guest
 
Posts: n/a
Default

Hi vinod
Thank you very much for the assistance worked very well
Regards
PP






Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink on page 55 rhoss BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 July 6th, 2008 01:12 PM
hyperlink inside a page debjanib ASP.NET 1.0 and 1.1 Basics 4 December 1st, 2006 02:04 PM
ASP:Hyperlink problem widad Classic ASP Basics 3 September 23rd, 2004 10:42 AM
Hyperlink in asp.net Jaco Jordaan ASP.NET 1.x and 2.0 Application Design 6 November 28th, 2003 07:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.