查看: 878|回复: 4
|
关于ASP.net 2.0 pass parameter 的问题!
[复制链接]
|
|
我是用ASP.net 2.0 and C#
我有2个pages.....
一个是A.aspx ,另一个是B.aspx
在A.aspx 有一个TextBox和一个button
在B.aspx 有一个DataGrid(with check box inside the field)和一个button
当我click button on A.aspx的时候, it will pop up a window which is B.aspx
在这个时候, 我有两个window which is A.aspx and B.aspx
then after i checked some data in datagrid then i will click the button in B.aspx
So,it will close B.aspx and the value shall be showed in Textbox on A.aspx..
The concept is exactly the same as Yahoo Email when we try to import the address from address book
请问各位大大要怎样做??
P/S: response.redirect and server.transfer cannot be used because it will show in the same page
希望admin能原谅我使用英语,因为比较容易解释!! |
|
|
|
|
|
|
|
发表于 26-4-2006 09:44 AM
|
显示全部楼层
这个与ASP.NET没关系,你应该用Javascript
类似:
window.parent.opener.document.Form1.A_textbox_name.value = "data want to pass" |
|
|
|
|
|
|
|

楼主 |
发表于 26-4-2006 01:35 PM
|
显示全部楼层
原帖由 WuSheng 于 26-4-2006 09:44 AM 发表
这个与ASP.NET没关系,你应该用Javascript
类似:
window.parent.opener.document.Form1.A_textbox_name.value = "data want to pass"
请问有没有一个比较完整的example可以refer?? |
|
|
|
|
|
|
|

楼主 |
发表于 26-4-2006 02:56 PM
|
显示全部楼层
想请问怎样用javascript来control a ListBox???
for example:
document.getElementById('ListBox').value???
这样对不对? |
|
|
|
|
|
|
|

楼主 |
发表于 26-4-2006 08:31 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|