Hi I am having difficulties using Url.Action method, please see my code below, what am I doing wrong….? (I’m using MVC Razor)
<a href='<%: @Url.Action("Edit", "Student",
new { id = item.DealPostID }) %>'>Hello </a>
Student is my StudentController and Edit is ActionResult method.
Remove
<%: %>from your Razor view. Those are WebForms tags.