日期:2014-05-17 浏览次数:20411 次
<asp:GridView ID="gv" runat="server" onrowdeleting="gv_RowDeleting">
<Columns>
<asp:BoundField DataField="Log_id" HeaderText="文章编号" />
<asp:BoundField DataField="Title" HeaderText="文章标题" />
<asp:TemplateField ShowHeader="false">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False"
CommandName="Delete"
Text="删除" OnClientClick='<%# "if (!confirm(\"你确定要删除" + Eval("Title").ToString() + "吗?\")) return false;"%>'>
</asp:LinkButton>
>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>