NavigateUrl including http://localhost... in mailto link

Michaelj42
Michaelj42 used Ask the Experts™
on
Gurus,

Trying to write a directory page that pulls from SQL. In place of the email address I want just a little picture of an envelope that is link to mailto@user...  What I'm getting is: http://localhost:4129/Directory/mailto@user... Any help would be appreciated.
<asp:HyperLink ID="column1label" runat="server"
NavigateUrl='<%# GetValue(DataBinder.Eval(Container.DataItem, "column1").ToString())%>'>
<img alt="email" src="Images/email_icon.jpg" style="width: 15px; height: 11px" />
</asp:HyperLink>
 
 
behind code
 
 
Public Function Getvalue(ByVal str As String) As String
   Return String.Concat("mailto@", str)
End Function

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Use the following format

mailto:user@doman.com

Author

Commented:
Sorry, I mistyped above.  

Issues is the link is coming up as something like:

http://localhost:4129/Directory/mailto:user@host.com 

instead of

mailto:user@host.com

Author

Commented:
nevermind, I see now you're saying I made a typo which I did. Dumb error, thanks for pointing that out. All fixed now.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial