< asp: ObjectDataSource ID ="ObjectDataSource1" runat ="server"
SelectMethod ="getPageListByPage" TypeName ="BLL.Classes"
DataObjectTypeName ="MODEL.Classes" DeleteMethod ="SoftDel" InsertMethod ="Add"
UpdateMethod ="Modify" EnablePaging ="True"
MaximumRowsParameterName ="rowIndex" SelectCountMethod ="GetTotalRowsCount"
StartRowIndexParameterName ="pageSize">
asp: ObjectDataSource >
< asp: ListView ID ="ListView1" runat ="server" DataSourceID ="ObjectDataSource1"
InsertItemPosition ="LastItem">
< AlternatingItemTemplate>
< tr style ="">
< td>
< asp: Button ID ="DeleteButton" runat ="server" CommandName ="Delete" Text ="删除" />
< asp: Button ID ="EditButton" runat ="server" CommandName ="Edit" Text ="编辑" />
td>
< td>
< asp: Label ID ="CIDLabel" runat ="server" Text =' <%# Eval("CID") %> ' />
td>
< td>
< asp: Label ID ="CNameLabel" runat ="server" Text =' <%# Eval("CName") %> ' />
td>
< td>
< asp: Label ID ="CCountLabel" runat ="server" Text =' <%# Eval("CCount") %> ' />
td>
< td>
< asp: Label ID ="CImgLabel" runat ="server" Text =' <%# Eval("CImg") %> ' />
td>
< td>
< asp: CheckBox ID ="CIsDelCheckBox" runat ="server"
Checked ='<% # Eval("CIsDel") %> ' Enabled ="false" />
td>
< td>
< asp: Label ID ="CAddTimeLabel" runat ="server" Text =' <%# Eval("CAddTime") %> ' />
td>
tr>
AlternatingItemTemplate>
< EditItemTemplate>
< tr style ="">
< td>
< asp: Button ID ="UpdateButton" runat ="server" CommandName ="Update" Text ="更新" />
< asp: Button ID ="CancelButton" runat ="server" CommandName ="Cancel" Text ="取消" />
td>
< td>
< asp: TextBox ID ="CIDTextBox" runat ="server" Text =' <%# Bind("CID") %> ' />
td>
< td>
< asp: TextBox ID ="CNameTextBox" runat ="server" Text =' <%# Bind("CName") %> ' />
td>
< td>
< asp: TextBox ID ="CCountTextBox" runat ="server" Text =' <%# Bind("CCount") %> ' />
td>
< td>
< asp: TextBox ID ="CImgTextBox" runat ="server" Text =' <%# Bind("CImg") %> ' />
td>
< td>
< asp: CheckBox ID ="CIsDelCheckBox" runat ="server"
Checked ='<% # Bind("CIsDel") %> ' />
td>
< td>
< asp: TextBox ID ="CAddTimeTextBox" runat ="server"
Text ='<% # Bind("CAddTime") %> ' />
td>
tr>
EditItemTemplate>
< EmptyDataTemplate>
< table runat ="server"
style ="">
< tr>
< td>
未返回数据。 td>
tr>
table>
EmptyDataTemplate>
< InsertItemTemplate>
< tr style ="">
< td>
< asp: Button ID ="InsertButton" runat ="server" CommandName ="Insert" Text ="插入" />
< asp: Button ID ="CancelButton" runat ="server" CommandName ="Cancel" Text ="清除" />
td>
< td>
< asp: TextBox ID ="CIDTextBox" runat ="server" Text =' <%# Bind("CID") %> ' />
td>
< td>
< asp: TextBox ID ="CNameTextBox" runat ="server" Text =' <%# Bind("CName") %> ' />
td>
< td>
< asp: TextBox ID ="CCountTextBox" runat ="server" Text =' <%# Bind("CCount") %> ' />
td>
< td>
< asp: TextBox ID ="CImgTextBox" runat ="server" Text =' <%# Bind("CImg") %> ' />
td>
< td>
< asp: CheckBox ID ="CIsDelCheckBox" runat ="server"
Checked ='<% # Bind("CIsDel") %> ' />
td>
< td>
< asp: TextBox ID ="CAddTimeTextBox" runat ="server"
Text ='<% # Bind("CAddTime") %> ' />
td>
tr>
InsertItemTemplate>
< ItemTemplate>
< tr style ="">
< td>
< asp: Button ID ="DeleteButton" runat ="server" CommandName ="Delete" Text ="删除" />
< asp: Button ID ="EditButton" runat ="server" CommandName ="Edit" Text ="编辑" />
td>
< td>
< asp: Label ID ="CIDLabel" runat ="server" Text =' <%# Eval("CID") %> ' />
td>
< td>
< asp: Label ID ="CNameLabel" runat ="server" Text =' <%# Eval("CName") %> ' />
td>
< td>
< asp: Label ID ="CCountLabel" runat ="server" Text =' <%# Eval("CCount") %> ' />
td>
< td>
< asp: Label ID ="CImgLabel" runat ="server" Text =' <%# Eval("CImg") %> ' />
td>
< td>
< asp: CheckBox ID ="CIsDelCheckBox" runat ="server"
Checked ='<% # Eval("CIsDel") %> ' Enabled ="false" />
td>
< td>
< asp: Label ID ="CAddTimeLabel" runat ="server" Text =' <%# Eval("CAddTime") %> ' />
td>
tr>
ItemTemplate>
< LayoutTemplate>
< table runat ="server">
< tr runat ="server">
< td runat ="server">
< table ID ="itemPlaceholderContainer" runat ="server" border ="0"
style ="">
< tr runat ="server" style ="">
< th runat ="server">
th>
< th runat ="server">
CID th>
< th runat ="server">
CName th>
< th runat ="server">
CCount th>
< th runat ="server">
CImg th>
< th runat ="server">
CIsDel th>
< th runat ="server">
CAddTime th>
tr>
< tr ID ="itemPlaceholder" runat ="server">
tr>
table>
td>
tr>
< tr runat ="server">
< td runat ="server"
style ="">
td>
tr>
table>
LayoutTemplate>
< SelectedItemTemplate>
< tr style ="">
< td>
< asp: Button ID ="DeleteButton" runat ="server" CommandName ="Delete" Text ="删除" />
< asp: Button ID ="EditButton" runat ="server" CommandName ="Edit" Text ="编辑" />
td>
< td>
< asp: Label ID ="CIDLabel" runat ="server" Text =' <%# Eval("CID") %> ' />
td>
< td>
< asp: Label ID ="CNameLabel" runat ="server" Text =' <%# Eval("CName") %> ' />
td>
< td>
< asp: Label ID ="CCountLabel" runat ="server" Text =' <%# Eval("CCount") %> ' />
td>
< td>
< asp: Label ID ="CImgLabel" runat ="server" Text =' <%# Eval("CImg") %> ' />
td>
< td>
< asp: CheckBox ID ="CIsDelCheckBox" runat ="server"
Checked ='<% # Eval("CIsDel") %> ' Enabled ="false" />
td>
< td>
< asp: Label ID ="CAddTimeLabel" runat ="server" Text =' <%# Eval("CAddTime") %> ' />
td>
tr>
SelectedItemTemplate>
asp: ListView >