62,074
社区成员
发帖
与我相关
我的任务
分享
<asp:GridView ID="GridViewLW" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataKeyNames="Id"
DataSourceID="ObjectDataSourceBrowseLeaveWord"
onrowdatabound="GridViewLW_RowDataBound"
onselectedindexchanged="GridViewLW_SelectedIndexChanged1">
<Columns>
<asp:BoundField DataField="Num" HeaderText="编号" SortExpression="Num">
<ItemStyle Width="5%" />
</asp:BoundField>
<asp:BoundField DataField="Subject" HeaderText="主题" SortExpression="Subject">
<ItemStyle Width="50%" />
</asp:BoundField>
<asp:BoundField DataField="LWDateTime" HeaderText="留言时间"
SortExpression="LWDateTime">
<ItemStyle Width="20%" />
</asp:BoundField>
<asp:BoundField DataField="UserName" HeaderText="用户名" SortExpression="UserName">
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:CommandField ShowSelectButton="True" />
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False"
OnClientClick="return confirm('确认要删除这条留言吗?')" CommandName="Delete" Text="删除"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>