<%@
Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="SimpleTypesNC.aspx.cs" Inherits="SimpleTypesNC" Title="Untitled Page" %>
<%@
Register Assembly="ExtendedObjectDataSource" Namespace="Manu.Web.UI.WebControls" TagPrefix="manu" %>
<asp:Content
ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<h1>Simple Types without optimistic concurrency</h1>
<asp:GridView
ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False"
AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True"
CssClass="gridview"
BackColor="#335789"
BorderColor="#133769"
BorderStyle="Solid"
BorderWidth="1px"
DataKeyNames="Id"
DataSourceID="ObjectDataSource1"
PageSize="4">
<Columns>
<asp:BoundField
DataField="Id"
HeaderText="Id"
ReadOnly="True"
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="ObjectDataSource1"
runat="server"
DeleteMethod="Delete"
InsertMethod="Add"
OldValuesParameterFormatString="old_{0}"
SelectMethod="LoadAll"
TypeName="ProductsDAL"
UpdateMethod="Edit"
OnDeleted="ObjectDataSource1_Deleted"
OnInserted="ObjectDataSource1_Inserted"
OnSelected="ObjectDataSource1_Selected"
OnUpdated="ObjectDataSource1_Updated"
MaximumRowsParameterName="maxRows"
StartRowIndexParameterName="startIndex"
EnablePaging="true"
SelectCountMethod="CountAll"
SortParameterName="sortedBy">
</manu:CompatObjectDataSource>
<br
/>
<table
cellpadding="0"
cellspacing="0"
class="htmltable">
<tr>
<td>name</td>
<td style="width:
100px">
<asp:TextBox
ID="txtName" runat="server"
EnableViewState="False">
</asp:TextBox></td>
</tr>
<tr>
<td style="width:
100px">
description</td>
<td style="width:
100px">
<asp:TextBox
ID="txtDescription"
runat="server"
EnableViewState="False">
</asp:TextBox></td>
</tr>
<tr>
<td style="width:
100px">
price</td>
<td style="width:
100px">
<asp:TextBox
ID="txtPrice" runat="server"
EnableViewState="False">
</asp:TextBox></td>
</tr>
</table>
<asp:LinkButton
ID="lbAdd" runat="server" OnClick="lbAdd_Click">Add Product
</asp:LinkButton><br />
<br
/>
<asp:Label
ID="lbResult" runat="server" EnableViewState="False"></asp:Label>
</asp:Content>