In ie9 this code works;
<span id="ForwardNavigationEnabled" style="display:inline;">
<a class="imagelink" href="@Url.Action("Details", "Subcontractor", new { id = Model.Navigator.NextPageId })">
<input id="btnNext" type="button" value="Next >|" />
</a>
<a class="imagelink" href="@Url.Action("Details", "Subcontractor", new { id = Model.Navigator.LastPageId })">
<input id="btnLast" type="button" value="Last >>|" />
</a>
</span>
Which is to say when you click on the button the href event in the hyperlink is fired. In ie8 the hyperlink is ignored and the click event of the button is fired instead, which does not go anywhere.
One fix for ie8 would be to give the button a click event and navigate that way. Another solution would be to replace the button with an image of the button.
But is there a neater solution?