Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 12-05-2004, 05:23 AM Hyperlink in data?
Junior Talker

Posts: 1
Trades: 0
Hello,

We have a site which pulls data from a Database into a web interface.
We complained to our web designer that the URLs have no links.

He says it's because it comes from a database.

Please advise us on this b'cos most of the world's portals and big sites keep their content in databases, including ORACLE/SQL databases.

And yet when you look at any CNN, Microsoft or Google News page, the link IS a hyperlink.

Please advise us so we can help the designer realise he's wrong!

Thanks,

BD.
bobduncan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-05-2004, 07:34 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
It's because it's litral text. In the database, the URL will appear simply as a peice of text, and when displayed on the page through a server side scripting language, there's nothing to put <a></a> tags around it. You could either put the HTML tags into the links directly in the databse, ie: <a href="http://your.url.here/page.asp">Your URL Text</a> or you could try to get your web designer to find code that will find and replace all URLs in the text with the relevant HTML above.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 12-06-2004, 05:48 AM
kalkm's Avatar
Experienced Talker

Posts: 31
Trades: 0
Hi,

Not sure if I am understanding it correctly, but I think you are only displaying the text instead of populating the href part of the link. Make sure that the results passed back from SQL is populating the right part of the hyperlink. Please give me a bit more detail if this doesn't help.

Regards,

Mark.
kalkm is offline
Reply With Quote
View Public Profile
 
Old 12-06-2004, 09:30 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
What he's saying is, you have 2 options.
1) store the data in the database with the <a href> tags and all. That way the links are already there.

2) When displaying the data from the database, have a script that finds all URLs and adds the neccassary html tags to make them clickable before displaying. Much like the forums here work, if you type www.somesite.com the forum will automaticly create a link out of it.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Hyperlink in data?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29561 seconds with 12 queries