I have this button code in ASP.NET MVC 5.
In the browser I get this error :
Uncaught SyntaxError: Unexpected string
<input type="button" value="Bid for this project"
onclick="location.href'@Url.Action("Create", "Bid", new {projectid = Model.ProjectID})'" />
In browser, button looks like this :
<input type="button" value="Bid for this project"
onclick="location.href'/Bid/Create?projectid=1'" />
Can you tell me how to make this right? Thanks.