I am trying to display content such as
<p>Text and link - @Html.ActionLink("Link", "Action")</p>
from a database, but if I use @Html.Raw then it doesn’t render the link.
Is there anyway to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need to use a Razor parser in order to achieve that. Checkout
RazorEnginewhich could be used render the Razor markup to HTML.