将下面的代码添加到<script>标签中,并将其作为触发事件的处理事件。如:写到button的onclick事件中
//弹出添加用户对话框
function
AddUser() {
window.open(
"./AddUser.aspx"
,
"_blank"
,
"toolbar=no, location=no, depended=yes, directories=no, status=no,
m
enubar=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>"
);