Hi I get this error whenever i try to create a button in html.
Error: “Unterminated string constant”
Here’s the code:
<input id="topImageNavigationPreviousButton" type="button" value="Previous" class="inline" onclick="location.href='@Url.Action("Index", "Home", new { id = (id + (startIndex - endIndex) + 1) })'"/>
I’m using MVC 4 Razor.
Please tell me if you want me to post more of my code 🙂
(PS: can someone tell me how i can linebreak that code? Tried <br/>)
unterminated string constant is beacause of missing a closing quotation mark.pretty sure you have made some mistake in the syntax.