问题1
Response.Write("<script>window.showModalDialog('b.aspx?bh='"+this.Label1.Text+"');</script>");
当this.Label1.Text='123','124','123' 时 不能打开b.aspx,this.Label1.Text='123'时可以 
问题2
我在a 窗体 用Response.Write("<script>window.showModalDialog('b.aspx?bh='"+this.Label1.Text+"');</script>")打开窗体b,
在b中执行下列操作:
关闭b,并将一参数传给窗体a 

解决方案 »

  1.   

    例子:parent.htm
    <script>
    str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
    alert(str);
    </script>modal.htm
    <script>
    window.returnValue="http://www.51js.com";
    </script>
      

  2.   

    <script>
    str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
    alert(str);
    </script>
      

  3.   

    问题1,引号的问题。你可以先把要写到客户端的字符串,打印出来看看,就清楚了。
    Response.Write(" <script>window.showModalDialog(\"b.aspx?bh="+this.Label1.Text+"\"); </script>"); 问题2.var xxx=window.showModalDialog('b.htm'); 这里xxx就是用来接收b.htm的返回值的, 只要这个窗口一关闭,xxx就得到b.htm的window.returnValue的值