Working in a MVC project using C# .Net. I have a top menu where I have links to different views. I'm trying to get my button click to take me to one of my views;
<input type="button" value="About Me" onclick="location.href='<%= @Url.Action("About Me", "AboutMePage") %>'"/>
But I'm hit with this error:
A potentially dangerous Request.Path value was detected from the client (<).
Not sure where I'm going wrong?
Cheers.