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.
精彩评论