Custom Pager ASPX PAGE
----------------------
<html>
<body>
<form id="Form1" runat="server">
<p>
<asp:DataGrid id="dgSearchResults" runat="server" Width="462px" Height="143px" OnPreRender="DataGrid1_PreRender" OnItemCreated="DataGrid1_ItemCreated" AllowPaging="True" BorderStyle="None" GridLines="Vertical" BorderWidth="1px" BorderColor="#999999" BackColor="White" CellPadding="3" OnPageIndexChanged="dgSearchResults_PageIndexChanged">
<FooterStyle forecolor="Black" backcolor="#CCCCCC"></FooterStyle>
<HeaderStyle font-bold="True" forecolor="White" backcolor="#000084"></HeaderStyle>
<PagerStyle horizontalalign="Right" forecolor="Black" position="TopAndBottom" backcolor="#999999" mode="NumericPages"></PagerStyle>
<SelectedItemStyle font-bold="True" forecolor="White" backcolor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle backcolor="Gainsboro"></AlternatingItemStyle>
<ItemStyle forecolor="Black" backcolor="#EEEEEE"></ItemStyle>
</asp:DataGrid>
</p>
</form>
</body>
</html>
<%@ Page Language="C#" Debug="true"%>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
Tuesday, July 7, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment