<%@ Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="ConstructorParameters.aspx.cs" Inherits="ConstructorParameters" Title="Constructor Parameters" %>
<%@ Register Assembly="ExtendedObjectDataSource" Namespace="Manu.Web.UI.WebControls" TagPrefix="manu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<h1>Constructor Parameters</h1>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CssClass="gridview" BackColor="#335789"
BorderColor="#133769" BorderStyle="Solid" BorderWidth="1px"
DataSourceID="CompatObjectDataSource1" PageSize="4" DataKeyNames="Id">
<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:CompatObjectDataSource ID="CompatObjectDataSource1" runat="server"
TypeName="ProductsDAL" DataObjectTypeName="Product"
SelectMethod="LoadAll" SelectCountMethod="CountAll"
MaximumRowsParameterName="maxRows" StartRowIndexParameterName="startIndex"
EnablePaging="true" SortParameterName="sortedBy">
<ConstructorParameters>
<manu:MethodCallParameter Name="httpContext"
MethodName="GetCurrentHttpContext"
TypeName="Manu.Helpers, __code" />
<manu:InstanceParameter Name="dbContext"
TypeName="Manu.DBUtils.DataBaseContext, __code">
<ConstructorParameters>
<asp:Parameter Name="schema" Type="String" DefaultValue="Products" />
</ConstructorParameters>
</manu:InstanceParameter>
</ConstructorParameters>
</manu:CompatObjectDataSource>
</asp:Content>