这段代码能实现了(COPY的),但我不明白其中的道理:
特别是 string tt 中的 111 的作用!! string tt="111 = window.open('"+Request.ApplicationPath+"/index.aspx"+"'" +",'','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes,status=yes,fullscreen=no,top=0;left=0,width=900,height=700');";
Response.Write("<script language=javascript>");
Response.Write(tt);
Response.Write("qminoa.moveTo(0,0);");
Response.Write("qminoa.resizeTo(screen.availWidth,screen.availHeight);");
Response.Write("window.opener=null;");
Response.Write("window.close();");
Response.Write("</script>");
特别是 string tt 中的 111 的作用!! string tt="111 = window.open('"+Request.ApplicationPath+"/index.aspx"+"'" +",'','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes,status=yes,fullscreen=no,top=0;left=0,width=900,height=700');";
Response.Write("<script language=javascript>");
Response.Write(tt);
Response.Write("qminoa.moveTo(0,0);");
Response.Write("qminoa.resizeTo(screen.availWidth,screen.availHeight);");
Response.Write("window.opener=null;");
Response.Write("window.close();");
Response.Write("</script>");
解决方案 »
- 点击按钮事件 确定 取消 很怪的一个问题! 急急急
- tcp/ip通信时报错,请大家给看看
- WinForm picturbox不能显示 图片...
- 在线等!我是个初学者!想请教各位大侠,怎样打开一个ASP.NET的系统,还有如何连接数据库!说具体点!谢谢了!
- iis配置问题,好几天了,请大家帮忙!
- XP+IIS+ASP.NET程序出错找不出来
- 马上要过年了,求助一点资源。。。
- 想请教这个页面传值的问题~
- 帮忙,把这段代码转成C#的
- 调用OleDbDataReader.GetString()出错
- 真是急死人呐,在线等乐! hchxxzx(NET?摸到一点门槛),你在线不?
- datalist模版内的事件激发
qminoa.moveTo(0,0);");是指将窗口移动到桌面坐标(0,0)位置
qminoa.resizeTo(screen.availWidth,screen.availHeight);");是设置窗体的大小,其中screen为屏幕对象
window.opener=null;这句设置当前窗体的打开页面为空,之后再用window.close();关闭当前IE窗体Response.Write()是把javascript语句输出到前台,以使窗体执行javascript语句。