You don't need to specify the path when using
Url.Action()
method. You need to specify the
Controller
name instead.
So if you have a
Controller
that was named ReportsController, then you could try doing something like this:
url: '@(Url.Action("SetSelectedHO","Reports"))'
Note that the suffix Controller was omitted when referencing a
Controller
name. In other words, your
ReportsController
can be referenced as
Reports
only. That's part of the convention.
For more information about the other overload methods of
Url.Action()
method see:
UrlHelper.Action Method (System.Web.Mvc)[
^]