问题的描述
在主窗口中(main.aspx) 中包含一用户控件( UserControl.ascx )
在该用户控件中有一文本框(textbox1)和一按钮 (button1) 单击该按钮后弹出窗口(subform.aspx)
该窗口中有一文本框(textbox2) 和 一返回按钮 (button2 ) 单击该按钮后我想把 textbox2 中的内容返回到 textbox1 中
问题的解决方法:
<script>window.opener.document.UserControlID:textbox1.value = '"+ textbox2.text +"';self.close();</script>" 就可以了.