Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
HiIs it possible to add in:
<a href="mailto:[email protected]">Send Mail</a>
In this:
@Html.Raw(Model.GetPropertyValue("email", true))
I have tried this below, but with no luck:
<a href="mailto:@Html.Raw(Model.GetPropertyValue("email", true))>Send Mail</a>
Thanks in advance.//René
Hi René,
I'm pretty sure you are using typed MVC so I think you need to use:
<a href="mailto:@Model.Content.GetPropertyValue("email", true)">Send Mail</a>
If you are using a classic Razor Macro then it would be:
<a href="mailto:@Model._email">Send Mail</a>
Thanks,
Jeavon
Hi Jeavon,Perfect you just solved my problem. I used your first example with a minor change. See below
<a href="mailto:@Model.GetPropertyValue("email", true)">Send Mail</a>
Thanks for your help,//René
That's great! I'm guessing this is going into a Partial View rather than a View then?
Hi Jeavon,That's correct. :-)//René
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Insert "mailto" in Html.Raw
Hi
Is it possible to add in:
In this:
I have tried this below, but with no luck:
Thanks in advance.
//René
Hi René,
I'm pretty sure you are using typed MVC so I think you need to use:
<a href="mailto:@Model.Content.GetPropertyValue("email", true)">Send Mail</a>
If you are using a classic Razor Macro then it would be:
<a href="mailto:@Model._email">Send Mail</a>
Thanks,
Jeavon
Hi Jeavon,
Perfect you just solved my problem. I used your first example with a minor change. See below
Thanks for your help,
//René
Hi René,
That's great! I'm guessing this is going into a Partial View rather than a View then?
Thanks,
Jeavon
Hi Jeavon,
That's correct. :-)
//René
is working on a reply...