将数据传递到另一个项目 [英] Passing data to another project

查看:81
本文介绍了将数据传递到另一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从网页中,我需要打开在另一个项目中创建的另一个页面,并且
将一些对象(数据库连接)传递给该页面。看起来第二个

项目有自己的应用程序和会话状态。


谢谢。

From a Web page, I need to open another page created in another project and
pass some object (a database connetion) to that page. Looks like the second
project has its own Application and Session states.

Thanks.

推荐答案

我很好奇你为什么要那样做?


Vik < viktorum @ == yahoo.com ==>在消息中写道

news:uG *************** @ TK2MSFTNGP02.phx.gbl ...
I am curious as to why you would want to do that?

"Vik" <viktorum@==yahoo.com==> wrote in message
news:uG***************@TK2MSFTNGP02.phx.gbl...
来自网页,我需要打开另一个项目中创建的另一个页面
并将一些对象(数据库连接)传递给该页面。看起来第二个项目有自己的应用程序和会话状态。

谢谢。
From a Web page, I need to open another page created in another project
and pass some object (a database connetion) to that page. Looks like the
second project has its own Application and Session states.

Thanks.



你永远不应该坚持连接,更不要说通过了。一个


杰夫

" Vik" < viktorum @ == yahoo.com ==>在消息中写道

news:uG *************** @ TK2MSFTNGP02.phx.gbl ...
You should never persist a connection, much less "pass" one

Jeff
"Vik" <viktorum@==yahoo.com==> wrote in message
news:uG***************@TK2MSFTNGP02.phx.gbl...
来自网页,我需要打开另一个项目中创建的另一个页面
并将一些对象(数据库连接)传递给该页面。看起来第二个项目有自己的应用程序和会话状态。

谢谢。
From a Web page, I need to open another page created in another project
and pass some object (a database connetion) to that page. Looks like the
second project has its own Application and Session states.

Thanks.



Vik,

看起来有点奇怪,但你肯定可以将

查询字符串上的连接字符串传递给另一个应用程序并让其各自的页面将其读回来,

然后使用连接字符串打开相同的连接。

Peter


-

联合创始人,Eggheadcafe.com开发人员门户网站:
http://www.eggheadcafe.com

UnBlog:
http://petesbloggerama.blogspot.com


" Vik"写道:
Vik,
Seems a bit strange, but you could certainly pass a connection string on the
querystring to the other app and have its respective page read it back out,
then open the same connection using the connection string.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Vik" wrote:
从网页,我需要打开另一个项目中创建的另一个页面,并将一些对象(数据库连接)传递给该页面。看起来第二个
项目有自己的应用程序和会话状态。

谢谢。
From a Web page, I need to open another page created in another project and
pass some object (a database connetion) to that page. Looks like the second
project has its own Application and Session states.

Thanks.



这篇关于将数据传递到另一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆