2

我有一个 Web 表单,我想异步调用 Ajax.ActionLink()。请帮我找出调用它的语法。

4

1 回答 1

0

这就是您可以在 Controller 中异步调用 Gettime 函数的方式。

         <%= Ajax.ActionLink("UTC", "GetTime", new { zone = "utc" },
         new AjaxOptions { UpdateTargetId = "myResults" }) %>
         <%= Ajax.ActionLink("BST", "GetTime", new { zone = "bst" },
         new AjaxOptions { Confirm="bst" }) %>
         <%= Ajax.ActionLink("MDT", "GetTime", new { zone = "mdt" },
         new AjaxOptions { UpdateTargetId = "myResults" }) %>
于 2012-07-02T11:33:44.033 回答