Asp.net 单击按钮调用带有参数的MVC操作方法
我想用参数调用MVC操作Asp.net 单击按钮调用带有参数的MVC操作方法,asp.net,asp.net-mvc,asp.net-mvc-2,Asp.net,Asp.net Mvc,Asp.net Mvc 2,我想用参数调用MVC操作 location.href = '<%: Url.Action("mAction", "mControl", "new {IDs='+selectedIDs+'}) %>'; location.href='' 我得到一个错误: CS1010:常量中的换行符 如何修复它?新前的奇怪引号 你能试试吗 location.href = '<%: Url.Action("mAction", "mControl", new {IDs=123}) %>';
location.href = '<%: Url.Action("mAction", "mControl", "new {IDs='+selectedIDs+'}) %>';
location.href=''代码>
我得到一个错误:
CS1010:常量中的换行符
如何修复它?新前的奇怪引号
你能试试吗
location.href = '<%: Url.Action("mAction", "mControl", new {IDs=123}) %>';
location.href='';
新建前的奇怪引号
你能试试吗
location.href = '<%: Url.Action("mAction", "mControl", new {IDs=123}) %>';
location.href='';