Redian新闻
>
请问, ASP.NET 中, 2 个web form之间如何传参数?
avatar
请问, ASP.NET 中, 2 个web form之间如何传参数?# DotNet - 窗口里的风景
j*s
1
谢谢,除了使用全局变量,还有其他几种方法?
avatar
b*e
2
you could store the object in Session.

【在 j****s 的大作中提到】
: 谢谢,除了使用全局变量,还有其他几种方法?
avatar
a*y
3
Session, as mentioned by bee.
Or store your data in Context(an Object collection), then
use Server.Transfer(string URL).

【在 j****s 的大作中提到】
: 谢谢,除了使用全局变量,还有其他几种方法?
avatar
a*y
4
Another way I can think of is to serilize your data and
SOAP it into message queue. Read the SOAP data by the
second page you want to transfer to. It's good for
unsynchorized situation.

【在 a**y 的大作中提到】
: Session, as mentioned by bee.
: Or store your data in Context(an Object collection), then
: use Server.Transfer(string URL).

avatar
m*n
5
i remember that you can transfer data between windows forms using events, is
that possible for web forms?

【在 a**y 的大作中提到】
: Another way I can think of is to serilize your data and
: SOAP it into message queue. Read the SOAP data by the
: second page you want to transfer to. It's good for
: unsynchorized situation.

avatar
a*y
6
Can you post a sample?

【在 m*******n 的大作中提到】
: i remember that you can transfer data between windows forms using events, is
: that possible for web forms?

avatar
a*y
8
In this sample, it's just like one form raises an event and the second
receives it. Transfering date is simply done by: Me.lblData.Text =
f2.TB1.Text
So, actually, i think the data transfer has nothing to do with events.

events,

【在 m*******n 的大作中提到】
: http://www.devcity.net/net/article.aspx?alias=multipleforms3
:
: is

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。