I'm trying to build a form in MVC 4 that will have at the end a check box in the following format:
_
|_| I agree to Terms & Conditions
where Terms
and Conditions
are actual URLs to the terms and conditions pages.
How I can Implement the @Html.LabelFor
so that I can insert the two urls? If I understood it right can be achieved with an extension?
EDIT:
Or, I can just change the Display Attribute on my checkbox field to I agree to
and then in my view use this or @Html.ActionLink
. Is this a good way?
@Html.LabelFor(m => m.AcceptTerms) <a href="http://www.google.com" target="_blank">Terms</a> & <a href="http://www.google.com" target="_blank">Conditions</a>