var udswin=window.open("../Index.aspx","","toolbar=yes,status=yes,resizable=yes");
为什么udswin是空的?
注:我用的是IIS服务器,VS开发工具

解决方案 »

  1.   

    我不知道啊,有些机子是可以的,有的返回的是空值,不知道怎么回事。是不是IIS设置问题?
      

  2.   

    <%@ Page language="c#" Codebehind="VerifySignIn.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Login.VertifySignIn" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <title>VertifySignIn</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <script language="javascript">
    function opennew()
    {
    if (parent.frames.length==0)
    {
    var udswin=window.open("../Index.aspx","","toolbar=yes,status=yes,resizable=yes");
    udswin.moveTo(0,0);
    udswin.resizeTo(window.screen.availWidth,window.screen.availHeight);

    }
    window.opener = null;
    window.close();
    }
    </script>
    </HEAD>
    <body MS_POSITIONING="GridLayout" onload="opennew()">
      

  3.   

    窗口确实也打不开,用的是IE8。而同事却完好的,我都检查了好多遍,实在不明白出现了什么问题。
    而我用IETester时,窗口能打开,但udswin也为空
      

  4.   

    终于找到原因的了:在internet选项---隐私--去掉“阻止弹出窗口程序”
    忙了一整天,居然是这个问题,郁闷死了。