自定义分页问题
请先看下面的页面和后台代码:
<table>
<tr>
<td>
<asp:datagrid id= "MyDataGrid " runat= "server " AutoGenerateColumns= "False " AllowCustomPaging= "false " HorizontalAlign= "Center " AlternatingItemStyle-BackColor= "#eeeeee " HeaderStyle-BackColor= "#aaaadd " Font-Size= "8pt " Font-Names= "Verdana " CellSpacing= "0 " CellPadding= "3 " GridLines= "Both " BorderWidth= "1 " BorderColor= "black " OnPageIndexChanged= "MyDataGrid_Page " PagerStyle-HorizontalAlign= "Right " PagerStyle-Mode= "NumericPages " PageSize= "5 " AllowPaging= "True ">
<AlternatingItemStyle BackColor= "#EEEEEE "> </AlternatingItemStyle>
<HeaderStyle BackColor= "#AAAADD " Font-Bold= "True " HorizontalAlign= "Center "> </HeaderStyle>
<PagerStyle HorizontalAlign= "Right " Mode= "NumericPages " Visible= "False "> </PagerStyle>
<Columns>
<asp:BoundColumn HeaderText= "标题 " DataField= "d_Name " HeaderStyle-Width= "100px "> </asp:BoundColumn>
<asp:BoundColumn HeaderText= "描述 " DataField= "d_Description " HeaderStyle-Width= "100px "> </asp:BoundColumn>
</Columns>
</asp:datagrid>
</td>
&n