You need to expose addTask method in service. Right now it's just a local variable which cannot be accessed from outside. When the service is constructed it should create proper object with necessary methods. So you should set addTask either with this.addTask = addTask or by returning object with such...
The issue seems to be this line: @Html.ActionLink("Open Pop Up", "Home", "actionName", new {@class="popupLink"}) Try the following instead: @Html.ActionLink("Open Pop Up", "actionName", "Home", null, new {@class="popupLink"}) Or this, using named parameters: @Html.ActionLink(linkText: "Open Pop Up", actionName: "actionName", controllerName: "Home", routeValues: null, htmlAttributes: new { @class = "popupLink" }) The ActionLink...
c#,asp.net,ajax,ajaxcontroltoolkit,modalpopup
Fixed. I did research and found it.