佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 877|回复: 4

关于ASP.net 2.0 pass parameter 的问题!

[复制链接]
发表于 26-4-2006 03:33 AM | 显示全部楼层 |阅读模式
我是用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能原谅我使用英语,因为比较容易解释!!
回复

使用道具 举报


ADVERTISEMENT

发表于 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 | 显示全部楼层
问题已经解决。。。谢谢!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 10-3-2025 05:34 AM , Processed in 0.141412 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表