I have a textbox that shows the user's email address and I want to add a mailto link to the textbox. So when I click on the textbox it will automatically open outlook.
<asp:TextBox runat="server" ID="txtContactEmail" ></asp:TextBox>
In the code behind I tried adding an a href
link to the textbox:
txtContactEmail.Text = "<a href=\"/mailto:" + bh.Email + "\">" + bh.Email + "</a>";
But it just displayed all the text instead of a link in the textbox - <a href="/mailto:test@gmail.com">test@gmail.com</a>