用window.open只打开页面,没有读取数据呀!!

解决方案 »

  1.   

    主页面
    function getval()
    {
    var val=window.showModalDialog('test.aspx',null,'dialogHeight:400px;dialogWidth:500px;center:yes');
    if(val!='')
    {document.all('textbox').value=val;}
    return false;//不做回传只获得坐标,要回传return true就可以了
    }
    c#代码,给按钮添加onclick客户端事件
    btn.Attributes["onclick"]="javascript:return getVal();";在打开的页面中这样传值给打开它的窗口
    top.returnValue='location';
    top.close();以上未做特殊说明都是javascript脚本
      

  2.   

    http://www.csdn.net/Develop/read_article.asp?id=15113