Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 29th, 2003, 07:49 PM
sengland sengland is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 sengland User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Links from database not displaying properly in ASP

In my Access 2000 database, I have several tables in which I am storing information about various countries. One is a lookup table with countryID and countryName. In a related table, I am storing hyperlinks that are relevant for each country, such as immunization requirements, etc. I'm running this on my Windows XP machine with IIS 5.<br><br><ul><li>When trying to display the links in ASP, the hyperlinks are displayed as text or in the following manner: <br><br><div class="msgQuoteWrap"><div class="msgCode">#http://www.cdc.gov/travel/easteurp.htm#</div></div><br><br>How can I correct this?</ul><br><br><ul><li>If possible, I'd like to wrap the hyperlink around text that is hardcoded into the page. For instance, I want the page to display:<br><br>US Health Immunization Requirements<br><br>But I want the above text to be the content between the <a>tags with the HREF = the hyperlink from the database. Is that possible? </ul><br><br><ul><li>Furthermore, I would like to set the links so that these links open in a new browser.</ul><br><br>Please help!

Reply With Quote
  #2  
Old May 1st, 2003, 06:04 PM
Colin Colin is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 43 Colin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
You need to make sure that the URL is stored as text in Access and NOT as a hyperlink field.<br><br>The you just call the field into the link<br><br>a href="<%= RECORDSET(FIELD) %>" TARGET = "_BLANK<br><br>Then write your text and close the tag /a

Reply With Quote
  #3  
Old May 2nd, 2003, 02:43 PM
Rob21p Rob21p is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 6 Rob21p User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
because you have probably tride the hyperlink field then changed to text? If you did then go to the database and remove all the # at the start and end. This should be a text field like the last post said

Reply With Quote
  #4  
Old May 3rd, 2003, 06:11 PM
sengland sengland is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 sengland User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, the code above worked perfectly, and yes, one needs to remove the pound signs from the access data once you convert back to text. In this case I had to convert to memo because some of my links were concatenated. I really appreciate all your help. I knew one of you would have the answer!

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Links from database not displaying properly in ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek