Asp.net弹出窗体对话框

来源:互联网 发布:现货农产品交易软件 编辑:程序博客网 时间:2024/05/07 18:40
将下面的代码添加到<script>标签中,并将其作为触发事件的处理事件。如:写到button的onclick事件中
          //弹出添加用户对话框
        function AddUser() {
            window.open( "./AddUser.aspx", "_blank" , "toolbar=no, location=no, depended=yes, directories=no, status=no,          menubar=no, scrollbars=no, resizable=no, copyhistory=no, top=260,left=260, width=400, height=400");
        }



页面处理完成后关闭对话框:
将下面的代码添加到后台处理代码中,后台处理完成后关闭对话框
Response.Write("<script>window.close();window.opener.location.reload();</script>" );
原创粉丝点击