Connecting Tech Pros Worldwide Forums | Help | Site Map

ASP Classic with Hyperlinks

Newbie
 
Join Date: Aug 2009
Posts: 1
#1: Aug 28 '09
Hi list,

This is for a corporate intranet:

I had a DB made in Access that has an hyperlink field and I want to store here link to PDF's, Doc's outside the website root folder in a shared folder where when the list is pulled, users can click and open the corresponding file.

I try to make with

<td style="width: 91px" valign="top"><a href="<%=normas("enlace")%>"><%=normas("norma")%></a></td>

But the reference keeps me pointing to the localhost Ej. http://localhost/intraweb and next follow the link location Ej. \\sql\calidad\normas digitales\norma1.pdf

I want the link point to something like this file:\\sql\calidad\normas digitales\norma1.pdf

any idea on this??

Best regards

ECS

codegecko's Avatar
Moderator
 
Join Date: May 2007
Location: United Kingdom
Posts: 395
#2: Aug 29 '09

re: ASP Classic with Hyperlinks


Hi ernestocs,

Firstly, welcome to Bytes. As a new user, if you haven't already, please take time to familiarise yourself with the Posting Guidelines.

The only reason I can think of for your URL pointing to "http://localhost/whatever" is that your database fields constitute a "relative" URL (i.e. they don't begin with file:// and just consist of directory name and filename).
Can you post example values of both "enlace" and "norma" from your DB?

codegecko
Reply