Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 August 24th, 2004, 12:34 PM
Registered User
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default hyperlinks problem

now here is the problem...i have some column in my database called as prepreq...and has item as G,O in it.when i retreive this item and display on my page i want hyperlink on G seperately and O seperately instead of havign the hyperlink G,O together
How do i display this on my web page?
I dont want to have two rows in my database giving G seperately in one and O in another.
Please help

 
Old August 24th, 2004, 08:05 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

  You can do with simple IF condition.

dim gURL,oURL
while not rs.EOF
  if rs("prepreq")="G" then
    gURL="<a href='...'>G</a>"
  elseif rs("prepreq")="O" then
    oURL="<a href='...'>O</a>"
  end if

  ...

 rs.movenext
wend




 
Old September 2nd, 2004, 07:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Did that help?

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Programmatically created HyperLinks VadimZ ASP.NET 2.0 Professional 2 July 5th, 2007 07:28 AM
weird problem with datagrid hyperlinks benya ASP.NET 1.0 and 1.1 Professional 3 March 27th, 2006 11:11 AM
Hyperlinks stephens1982 HTML Code Clinic 1 August 29th, 2005 12:13 AM
Hyperlinks bahachin Excel VBA 2 February 13th, 2005 04:50 AM
hyperlinks sbhandar Classic ASP Basics 4 August 19th, 2004 09:17 AM





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