为一个事件创建一个弹出窗口

<asp:TemplateField ShowHeader="False">
                                                             <ItemTemplate>
                                                                 <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                                     OnClientClick="javascript:return confirm('是否要删除该记录')"  Text="删除"></asp:LinkButton>
                                                             </ItemTemplate>
                                                         </asp:TemplateField>
在click增加javascript

你可能感兴趣的:(弹出窗口)