ASP.Net 如何加入一个确认窗口
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lbDel" runat="server" Text="删除" CommandName="DeleteUser"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserName") %>' OnCommand="LinkButtonClick"
ForeColor="blue" OnClientClick="return confirm('确定要删除该用户吗?');">
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lbDel" runat="server" Text="删除" CommandName="DeleteUser"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserName") %>' OnCommand="LinkButtonClick"
ForeColor="blue" OnClientClick="return confirm('确定要删除该用户吗?');">
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>