当前位置:编程学习 > C#/ASP.NET >>

asp.net __JS子页面向父页面传值相关问题?

我在子页面写了
<script type="text/javascript">
        var _parentWin = window.parent;
        function returnContract_Click(aa,bb) {

            //window.opener.document.getElementById("ctl00$MainContent$txtContract").Value = aa;
            window.opener.document.getElementById("MainContent_txtContractNoID").value = aa;
            window.opener.document.getElementById("MainContent_txtMerchandiserName").value = bb;
            opener = null;
            self.close();
        }
    </script>
这样能在父页面的btuuon上得到显示

.但为什么在后台就得不到值呢.

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,