how can i accomodate Html.RouteLink in( ajax.actionlink with updatetargetid="divid")in
<%= Html.RouteLink("First", "Pager", new { page = 1 })%>
how can i accomodate Html.RouteLink in( ajax.actionlink with updatetargetid="divid")in
<%= Html.RouteLink("First", "Pager", new { page = 1 })%>
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.