E.g.
@url.Action("Actionname", "ControllerName", new { [email protected], @class="test"})
I want such a thing in Ajax, like this:
@Ajax.action("Actionname", "ControllerName",new { [email protected], @class="test"})
I tried this, but it did not benefit me:
@Ajax.ActionLink(".", "DeleteCountry", "Main", new AjaxOptions { HttpMethod = "Post", InsertionMode = InsertionMode.Replace, UpdateTargetId = "Details" }, new { CountryID = item.CountryID , @class="fa fa-times"}) @Ajax.ActionLink(".", "EditCountry", "Main", new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "Details" }, new {CountryID=item.CountryID,@class="fa fa-pencil"})
Can anyone assist me with this?
In asp.net mvc I use both Ajax.BeginForm
and JQuery ajax
});
Think it will help you.