GridView:<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("MailID") %>' CommandName="DeleteMail"
OnClientClick="return confirm('是否删除?');">删除</asp:LinkButton>
页面使用:1.关闭时提示“是否关闭”
Response.Write("<script language:javascript>javascript:window.close();</script>");
2.直接关闭不提示
Response.Write("<script language:javascript>javascript:window.opener=null;window.close();</script>");
posted on 2008-07-26 09:18
reddyone 阅读(886)
评论(0) 编辑 收藏 引用 所属分类:
.net