弹出窗口的值返回 一个textbox加一个搜索按钮,点按钮出来一个窗口,窗口是以树形结构显示的,点击树形结构上的某个值,这个值返回到textbox,这样的功能得怎么实现 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.设置Form1的TextBox访问性为public2.TreeView的AfterSelect里写:Form1 frm =new Form1();frm.TextBox1.Text = TreeView.SelectedNode.Text;this.Close() 楼上的,你不回答也不要瞎顶可好。难道你不是一步一步过来的?你生来就会?<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>无标题页</title> <script type="text/javascript"> function Button1_onclick(){ var k=showModalDialog("b.aspx",self);//打开b窗口} </script></head><body> <form id="form1" runat="server"> <div> <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /> <input id="Text1" type="text" /></div> </form></body></html><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>无标题页</title><script language="javascript" type="text/javascript">function Button1_onclick() {window.dialogArguments.document.getElementById("Text1").value="aaa";//给a窗口的文本框添加值}</script></head><body> <form id="form1" runat="server"> <div> <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /> </div> </form></body></html> 严重B4用cs的东西来回答bs的问题严重B4 网页上面写在下来的源代码使用问题 一个关于FileUpload控件上传图片的问题,求解答~ .net mp3上传问题 问个弱问题,怎么动态改变控件颜色 生成缩约图时的图像质量问题? 怎样在指定的位置显示窗口?急~~!急! 谁可以告诉我Repeater为什么控件不显示 怎样在 datagrid 中删除记录啊? 使用treeview控件,我想给它们的节点图标都换一下,可它默认图标都在上面,怎么去掉默认的。 怎么样获取div中的信息 面向对象设计
2.
TreeView的AfterSelect里写:
Form1 frm =new Form1();
frm.TextBox1.Text = TreeView.SelectedNode.Text;
this.Close()
楼上的,你不回答也不要瞎顶可好。难道你不是一步一步过来的?你生来就会?<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function Button1_onclick()
{
var k=showModalDialog("b.aspx",self);//打开b窗口
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="button" onclick="return Button1_onclick()" />
<input id="Text1" type="text" /></div>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">function Button1_onclick() {
window.dialogArguments.document.getElementById("Text1").value="aaa";//给a窗口的文本框添加值
}</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="button" onclick="return Button1_onclick()" />
</div>
</form>
</body>
</html>
严重B4用cs的东西来回答bs的问题严重B4