you can put the string or number to a public variable .
you can get the string or the number by the  public variable.

解决方案 »

  1.   

    公共变量在哪儿设置啊?
    另外,在 javascript 中怎么访问啊?
      

  2.   

    可以保存到session或application中
      

  3.   

    添加一个<input type=hide value="" name&id="xxx">,
    在javascript用document.form[formname].xxx.value,访问,
    在.net中用request.form[xxx],访问
      

  4.   

    To nktycoolnick(nkty):
        javascript 能够访问 session 吗?To hdt(robert):
        我不明白你的意思,我要的来自另一个窗口的数据。添加 hidden 是在哪个窗口?如果在新窗口,我在原窗口怎么去访问它?
      

  5.   

    hide只是为服务器端程序和客户端javascript建立一个桥梁,使javascript和.net可以通讯
      

  6.   

    我对javascript不是很熟,但我认为javascirpt取弹出窗口的数据,应该比较容易。
    取得后,把hide字段的value,设为,取得的数据,发送给服务器端就可解决了