日期:2014-05-17 浏览次数:20524 次
<asp:ListView ID="ListView1" runat="server" onitemcommand="ListView1_ItemCommand" onitemediting="ListView1_ItemEditing" onitemcanceling="ListView1_ItemCanceling" InsertItemPosition="LastItem" oniteminserting="ListView1_ItemInserting" DataKeyNames="id" onitemdatabound="ListView1_ItemDataBound" > <LayoutTemplate> <table width="98%" b border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#CCCCCC" style="border-collapse: collapse;"> <tr> <td background="~/Admin/images/right_tab_top.jpg" style="text-align: center"> QQ号码</td> <td background="~/Admin/images/right_tab_top.jpg" style="text-align: center"> QQ描述</td> <td background="~/Admin/images/right_tab_top.jpg" style="text-align: center"> 显示顺序</td> <td background="~/Admin/images/right_tab_top.jpg" style="text-align: center"> 是否使用</td> <td background="~/Admin/images/right_tab_top.jpg" style="text-align: center"> 基本操作</td> </tr> <tr id="itemPlaceholder" runat="server" /> </table> </LayoutTemplate> <ItemTemplate> <tr > <td style="text-align: center"><%# DataBinder.Eval(Container.DataItem, "QQContent")%></td> <td style="text-align: center"><%# DataBinder.Eval(Container.DataItem, "QQType")%></td> <td style="text-align: center"><%# DataBinder.Eval(Container.DataItem, "QQ_order")%></td> <td style="text-align: center"> <asp:CheckBox ID="chk" runat="server" Enabled="False"/> <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Eval("showflag") %>'/> </td> <td style="text-align: center" width="120"> <asp:ImageButton ID="ImageButton1" ImageUrl="~/m/images/edit.gif" runat="server" CommandName="Edit"/> <asp:ImageButton ID="ImageButton2" ImageUrl="~/m/images/del.gif" runat="server" CommandName="imgDelete" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"id") %>' /> </td> </tr> </ItemTemplate> <EditItemTemplate> <tr > <td style="text-align: center"><%# DataBinder.Eval(Container.DataItem, "QQContent")%></td> <td style="text-align: center"><%# DataBinder.Eval(Container.DataItem, "QQType")%></td> <td style="text-align: c