日期:2014-05-18 浏览次数:20755 次
<script type="text/javascript"> function checkDelete() { return confirm('是否删除?'); } </script> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand" > <Columns> <asp:BoundField DataField="ID" HeaderText="编号" /> <asp:BoundField DataField="NameL" HeaderText="名称" /> <asp:TemplateField> <ItemTemplate> <asp:LinkButton ID="lkBtnDelete" runat="server" Text="删除" CommandArgument='<%# Eval("ID") %>' CommandName="delRow" OnClientClick="return checkDelete()"></asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>