类型:控件DropDownList 选择DropDownList某一项,传值查询Grid窗口页面显示  
                      选择Grid窗口页面LinkButton按钮获取选中行“名称”并返回给文本框关闭窗口
名称:文本框在线等  能上代码的尽量上代码 谢了!!

解决方案 »

  1.   

    选择DropDownList 项时用window.open 打开新窗口,选择Grid值用window.opener.document.getElementByID("文本框客户端ID").value = 值;
    用window.close();关闭打开的窗口
      

  2.   

    参考
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script language="javascript" type="text/javascript">
     function RedirectUrl(){
    var val = document.getElementById("sel").value;
    if(val != ""){
    window.open(val,"Refer");
    }
     }
    </script>
    </head><body>
    <form id="form1" name="form1" method="post" action="">
        <select name="sel" id="sel" onchange="RedirectUrl()">
         <option value="">请选择</option>
         <option value="2.html">2.html</option>
        </select>
        <span id="rtnValue"></span>
    </form>
    </body>
    </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script language="javascript" type="text/javascript">
    function ReturnValue(){
       var val = document.getElementById("sex").value;
       //alert(window.opener.document.getElementById("rtnValue").innerHTML);
       window.opener.document.getElementById("rtnValue").innerHTML = val;
       window.close();
    }
    </script>
    </head><body>
    <form id="form1" name="form1" method="post" action="">
        <input type="radio" name="radio" id="sex" value="男" />男
        <input type="radio" name="radio" id="sex" value="女" />女    <input type="submit" name="btnOK" id="btnOK" value="OK" onclick="ReturnValue()" /></form>
    </body>
    </html>
      

  3.   

    子窗口window中获取值
    传回给父窗口window.opener这个对象,像1楼那样操作就行了 
      

  4.   

     麻烦你用DropDownList试试
    var val = document.getElementById("DropDownList的ID").value;
    这样能获得?  打开窗体怎么传参的  子页面那边怎么接收
    麻烦帮下  谢了
      

  5.   

    我是给他一个<a hre="wenjianming"?id=<%"id"%>传参 后面接受参数