1  能否用下面的方法 弹出一个有固定大小  没有工具栏 的窗口 
    Response.Write(@"<script>  if(confirm('您有新的消息! 要立即查看吗?'))     window.location.replace('GetMessage.aspx?customerid=1 ')</script>";因为是在后台代码里  我不知道这里 还能不能用 window.open这样的方法 也不知道怎么用2  如何在一个 frame 的aspx页面后台代码里   让另一个 frame的页面打开别的 链接
 望GGJJ们指点

解决方案 »

  1.   

    1、
    <script LANGUAGE="javascript">  
    <!--  
    window.open ('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')  
    file://写/成一行  
    -->  
    </script>  
    参数解释:  
    <script LANGUAGE="javascript"> js脚本开始;  
    window.open 弹出新窗口的命令;  
    'page.html' 弹出窗口的文件名;  
    'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;  
    height=100 窗口高度;  
    width=400 窗口宽度;  
    top=0 窗口距离屏幕上方的象素值;  
    left=0 窗口距离屏幕左侧的象素值;  
    toolbar=no 是否显示工具栏,yes为显示;  
    menubar,scrollbars 表示菜单栏和滚动栏。  
    resizable=no 是否允许改变窗口大小,yes为允许;  
    location=no 是否显示地址栏,yes为允许;  
    status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;  
    </script> js脚本结束  
      

  2.   

    System.Text.StringBuilder sb = new System.Text.StringBuilder();
    sb.Append("<script>");
    sb.Append("if (confirm('您有新的消息! 要立即查看吗?')){");
    sb.Append("window.showModalDialog('GetMessage.aspx?customerid=1','newWin','dialogWidth=820px;dialogHeight=450px;dialogLeft=180;dialogTop=260;help=0;status=0');}");
    sb.Append("</script>");
    this.Response.Write(sb.ToString());
      

  3.   

    window.parent.frameName.src = "aaa.aspx";
      

  4.   

    this.Response.Write("<script>window.parent.frameName.src = 'aaa.aspx';
    </script>");
    //其中:frameName是你“另一个 frame”的 name;
    //aaa.aspx是你想打开的链接页面
      

  5.   

    this.Response.Write 输出脚本可能会出错 
    我是用的 Label.Text = "<script>if (confirm('您有新的消息! 要立即查看吗?'window.showModalDialog('GetMessage.aspx?customerid=1','newWin','dialogWidth=820px;dialogHeight=450px;dialogLeft=180;dialogTop=260;help=0;status=0');}\");</script>";...