我正在使用MVC4和Jquery。在MVC中打开.htm文件需要帮助
我在通过MVC中的操作方法打开.htm文件时遇到问题。
这里是我的代码:
<img src="~/Images/question_frame.png" style="margin-top:3px;height:18px;width:20px;" onclick="window.open('@Url.Action("Help", "Home", new { id = "NMCHelp"})', 'NMCHelp',toolbar=no, scrollbars=yes, resizable=yes, top=50, left=50,width=750, height=600');"/>
我ActionMethod:
[HttpGet]
[Authorize]
public ActionResult Help(){
var result = new FilePathResult("~/help/nmc/enu/Default.htm", "text/html");![enter image description here][1]
return result;
}
我现在面临的问题,而试图open.I我得到错误,如 '$' 是不确定的。
请让我知道我可以打开.htm文件通过行动方法
正确格式化 – Ionic