<%@
Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="SelectMethod.aspx.cs" Inherits="SelectMethod" Title="Select Method to extract total row count"
%>
<%@
Register Assembly="ExtendedObjectDataSource" Namespace="Manu.Web.UI.WebControls" TagPrefix="manu" %>
<asp:Content
ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<h1>Select method to extract the total row count
for Paging</h1>
<asp:GridView
ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CssClass="gridview" BackColor="#335789"
BorderColor="#133769"
BorderStyle="Solid"
BorderWidth="1px"
DataSourceID="ObjectDataSource1"
PageSize="4">
<Columns>
<asp:BoundField
DataField="Id"
HeaderText="Id"
SortExpression="Id"
/>
<asp:BoundField
DataField="Name"
HeaderText="Name"
SortExpression="Name"
/>
<asp:BoundField
DataField="Description"
HeaderText="Description"
SortExpression="Description"
/>
<asp:BoundField
DataField="Price"
HeaderText="Price"
SortExpression="Price"
/>
</Columns>
<RowStyle
BackColor="White"
ForeColor="#436799"
/>
<HeaderStyle
ForeColor="White"
/>
<PagerStyle
ForeColor="White"
/>
</asp:GridView>
<manu:ExtendedObjectDataSource
ID="ObjectDataSource1"
runat="server"
EnablePaging="True"
MaximumRowsParameterName="maxRows"
OldValuesParameterFormatString="original_{0}"
SelectMethod="LoadAll"
SortParameterName="sortedBy"
StartRowIndexParameterName="startIndex"
TotalRowCountParameterName="totalRowCount"
TypeName="ProductsDAL">
</manu:ExtendedObjectDataSource>
</asp:Content>