Why won't this display as a link when going from an access table (field defined as html) on an asp page

<TD><%Response.Write rsPeople("EMailAddr")%><a href="mailto:<%=rsPeople("EMailAddr")%>"></a></TD></TR

Thanx in Advanc

Ton

Re: Getting Html Field to Display as a Link by Steven

Steven
Thu May 20 12:16:20 CDT 2004

<tr>
<TD>
<%=rsPeople("EMailAddr")%>
<a
href="mailto:<%=rsPeople("EMailAddr")%>"><%=rsPeople("EMailAddr")%></a>
</TD>
</tr>

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


"Tony" <nahsfca@zianet.com> wrote in message
news:50FF80CC-9DA0-462C-A233-B998E752B657@microsoft.com...
> Why won't this display as a link when going from an access table (field
defined as html) on an asp page?
>
>
> <TD><%Response.Write rsPeople("EMailAddr")%><a
href="mailto:<%=rsPeople("EMailAddr")%>"></a></TD></TR>
>
> Thanx in Advance
>
> Tony
>



Re: Getting Html Field to Display as a Link by Brian

Brian
Thu May 20 12:36:09 CDT 2004

The displayable text must go _inside_ the <a> tags

like this:

<TD><a href="mailto:<%=rsPeople("EMailAddr")%>"><% =rsPeople("EMailAddr") %></a></TD></TR>

Brian



Re: Getting Html Field to Display as a Link by Roland

Roland
Thu May 20 15:26:18 CDT 2004

"Tony" wrote in message
news:50FF80CC-9DA0-462C-A233-B998E752B657@microsoft.com...
: Why won't this display as a link when going from an access table (field
defined as html) on an asp page?
:
: <TD><%Response.Write rsPeople("EMailAddr")%><a
href="mailto:<%=rsPeople("EMailAddr")%>"></a></TD></TR>

It's usually easier to do it this way and eliminates the ASP processor
having to switch between ASP/HTML code.

<%
dim email
sub prt(str)
Response.Write(str & vbCrLf)
end sub

email = rsPeople("EMailAddr")
prt("<td><a href=""mailto:" & email & """>" & email & "</a></td></tr>")

' additional code...
%>

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp