页面大小的问题

merrygood2041 2011-07-11 05:22:40
大家好,我在首页的一个记录上做了一个修改的连接,点击修改二字后出现一个200*600页面,在这个页面修改某记录的一个字段值后保存退出,但是我这里确认修改好在返回时原来的那个首页页面大小也变成了200*600页面,请问我修改好后保存退出代码要怎么样写,谢大家指教!!!!
...全文
81 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
merrygood2041 2011-07-18
  • 打赏
  • 举报
回复
问题解决,谢谢
beyond_me21 2011-07-18
  • 打赏
  • 举报
回复
还要再加个Response.end

<%
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from table1 where id="&cint(id)
rs.open sql,connstr,2,3
rs("wanz")=request("wanz")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write("<script>window.opener.document.href=window.opener.document.href;window.close();</script>")
response.end()
%>
beyond_me21 2011-07-18
  • 打赏
  • 举报
回复
楼主基础太差

执行代码:
<%
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from table1 where id="&cint(id)
rs.open sql,connstr,2,3
rs("wanz")=request("wanz")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write("<script>window.opener.document.href=window.opener.document.href;window.close();</script>")
%>
merrygood2041 2011-07-18
  • 打赏
  • 举报
回复
大家能进来谈谈呗
merrygood2041 2011-07-12
  • 打赏
  • 举报
回复
response.Write("<script language=javascript>window.opener=null; window.close;</script>")改成这样还是不能自动关闭200*600这个页面。
在后面加response.end()这个也是一样。
亚细亚 2011-07-11
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 merrygood2041 的回复:]

直接用windows.close();就出现如下错误:
Microsoft VBScript 运行时错误 '800a01a8'

缺少对象: 'windows'

\editsave.asp, line 13
13行就是语句windows.close()
[/Quote]
<script language="javascript" >
window.opener=null;
window.close;
</script>
merrygood2041 2011-07-11
  • 打赏
  • 举报
回复
直接用windows.close();就出现如下错误:
Microsoft VBScript 运行时错误 '800a01a8'

缺少对象: 'windows'

\editsave.asp, line 13
13行就是语句windows.close()
亚细亚 2011-07-11
  • 打赏
  • 举报
回复
不要用:response.redirect("admin.asp")//admin.asp是显示数据的首页
你直接windows.close();
merrygood2041 2011-07-11
  • 打赏
  • 举报
回复
点击确认修改按钮后,修改后的改数据能保存到数据库,但是200*600页面依然停在那在难。我的代码如下:
<a href='#2' target="_self" class="style44" onClick="window.open('wtedit.asp?id=<%=rs("id")%>','','height=200,width=600,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no, status=no')">完成状态修改</a>

执行代码:id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from table1 where id="&cint(id)
rs.open sql,connstr,2,3
rs("wanz")=request("wanz")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.redirect("admin.asp")//admin.asp是显示数据的首页
不用response.redirect("admin.asp")这句的话就出现一个200*600的空白页
亚细亚 2011-07-11
  • 打赏
  • 举报
回复
保存后,直接关闭弹出的窗口就可以,不要连接前面那个页面

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧