开发者

ajax.actionlink

how can i accomodate Html.R开发者_Go百科outeLink in( ajax.actionlink with updatetargetid="divid")in


Why not use Ajax.RouteLink?

<% AjaxOptions ajaxopts = new AjaxOptions(){HttpMethod="Get",
InsertionMode=InsertionMode.Replace,
UpdateTargetId="divid"}; %>

<%=Ajax.RouteLink("First","Pager",ajaxopts, new {page=1})%>

Just make sure that your Route returns a partial view for the pager, not the whole view. Either via a separate action or through a bool in the route to return either View or Partial.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜