Reputation: 13080
I want to call MVC actions with parameters
location.href = '<%: Url.Action("mAction", "mControl", "new {IDs='+selectedIDs+'}) %>';
or location.href = '<%: Url.Action("mAction", "mControl", "new {IDs=123}) %>';
I get error:
CS1010: Newline in constant
How to fix it?
Upvotes: 0
Views: 3946
Reputation: 60493
strange quotes before new
can you try
location.href = '<%: Url.Action("mAction", "mControl", new {IDs=123}) %>';
Upvotes: 4