mailTo in asp.net MVC 2.0
-
28-09-2019 - |
Question
how can I use mailto in asp.net MVC 2.0 Website.
<a href="mailto:astark1@unl.edu"><b>Simple MailTo</b></a>
I must get email from Model. I need something like this:
Html.MailTo(Model.item.email)
Thanks.
Solution
<a href="mailto:<%=Model.item.email%>"><b>Simple MailTo</b></a>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow