1

例えば

@url.Action("Actionname", "ControllerName", new { id=@item.id, @class="test"})

次のように、Ajaxでそのようなことが必要です。

@Ajax.action("Actionname", "ControllerName",new { id=@item.id, @class="test"})

私はこれを試しましたが、私には役に立ちませんでした:

  @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"})

誰でもこれで私を助けることができますか?

4

1 に答える 1