有A,B两个页面,A页面中包含很多信息,其中一个输入项要求从弹出窗口中选择,现在A窗口中有一个textbox和一个button,B页面用listbox列出了大量的选择项, 现在希望选择B中的一项后关闭B页面,同时将值写入A页面的textbox中。 同时不影响A页面中其他项的内容。 我该如何做?
请各位兄弟帮忙。
请各位兄弟帮忙。
解决方案 »
- 怎么通过字段名取得其在GridView中处于第几列
- Sql 查询问题求解,在线等!
- .net中弹出打开本地文件对话框
- 配置创建asp.net用户问题(在线等待,解决马上散分)
- 在datagrid中绑定的dropdownlist显示的内容默认是数据库中的内容
- 做web这么久了,这个问题还是第一次遇见(绝对值得看的问题)
- textbox控件数据不能更新
- 用户 'NT AUTHORITY\NETWORK SERVICE' 登录失败。
- 刚刚做好的一个asp.net日期输入TextBox控件
- 如何解决客户端传递数字和英文参数出错的问题?
- 问一个网页抓取的问题
- 书上一个多媒体播放器程序 使用个FilgraphManger 类,但去找不到它?谁知道啊?
this.Response.Write("<script>window.opener.document.Form1.ICPID.value="+t+";window.close();</script>");
opener.document.Form1.ICPID.value:父页面的Textbox
var a=window.showModalDialog ("attribute_set2.aspx?id8="+classid+"&val="+str3+"", my_friends,"scroll:1;status:0;help:0;resizable:1;dialogWidth:370px;dialogHeight:340px");
if (a !="undefined")
{
document.Form1.Hidden8.value ="1";//返回值的标志
document.Form1.Hidden5.value=a; //返回值
}
<HTML><BODY>
<input type="text" id="txt" size=20>
<script>
function show(){
x = showModalDialog("test2.html");
txt.value = x;
}
</script>
<input type=button value=open onclick="show()">
</BODY></HTML>
B:
<HTML><BODY>
<input type="text" name="mm">
<button onclick="doSomething()">do somthing</button>
<script>
function doSomething(){
returnValue = mm.value;
close();
}
</script>
</BODY></HTML>
Response.Write("<script>window.opener.document.form1.dwmc.Text ='" + Label1.Text + "';window.close();")
其中dwmc是父页面的textbox ,label1是弹出窗口的标签。 可运行的时候出现下面错误。错误:window.opener.document.form1.dwmc为空或不是对象。这是什么原因??
是value不是Text
B:
string err = Server.UrlEncode('"+listbox.SelectValue+"');
Server.Transfer("WebForm1.aspx?msg="+err);
A:
TextBox.Text = Request.QueryString["msg"].ToString();