• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 979
  • Last Modified:

Simple MailTo href tag

I have to bind the email address to mailto tag. This works but when I click on the link and the "outlook" email opens, the email address isnt displayed in "To" line:
 <a href="mailto:"><asp:Label runat="server" ID="lblEmail" Text='<%# Eval("Email") %>'></asp:Label></a>

I tried this, but the email doesnt even display:

<a href="mailto:" <%# Eval("Email") %> ></a>

It should look something like this: <a href="mailto:test@test.com">
0
Camillia
Asked:
Camillia
  • 2
1 Solution
 
Shaun KlineLead Software EngineerCommented:
<a href='mailto:<%# Eval("Email") %>' ></a>
0
 
CamilliaAuthor Commented:
No, it doesnt get displayed on the screen. When I look at the HTML output ,it's like this:

<a href='mailto:c@i.com' ></a>
0
 
CamilliaAuthor Commented:
never mind, i got it. Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now