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>
posted @ 2008-06-14 10:52  不染丹心  阅读(323)  评论(0编辑  收藏  举报