I am using jqgrid and advanced master detail approach. It was working fine until I hosted the ASP.NET MVC3 application in IIS 7.5. Currently, my url paramter looks like below
jQuery("#list").jqGrid('setGridParam', { url: "/Home/GetNames/" + rowid, page: 1 });
which was calling the controller perfectly with the passed rowid.
After I hosted the application in IIS, I learnt that I need to use @Url.Action and I changed my url parameter as below:
jQuery("#list").jqGrid('setGridParam', { url: '@Url.Action("GetNames", "Home")' + rowid, page: 1 });
Now, my controller is not getting called. I think I am using a wrong syntax when using @Url.Action.
Please provide any suggestions.
You are missing a backslash between rowid and your route