I am using MVC4 and Jquery.
I am having issue in opening the .htm file through action method in MVC.
Here is my Code:
<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');"/>
My ActionMethod:
[HttpGet]
[Authorize]
public ActionResult Help(){
var result = new FilePathResult("~/help/nmc/enu/Default.htm", "text/html");![enter image description here][1]
return result;
}
I am facing issue while trying to open.I am getting error like '$'is undefined.
Please let me know how can I open the .htm file through action method
See Question&Answers more detail:os