Showing posts with label projects. Show all posts
Showing posts with label projects. Show all posts

Thursday, March 29, 2012

passing values between different projects

Hi,
I h ave one project in C# and the other one in vb.net. I want one of the VB.net webforms to pass a value to C#'s webform. how can I do this ?

Thanks,If they're published to the same website, you can post the values in the Query String or store the values into session. The difference in languages does not matter.

Saturday, March 24, 2012

Passing variables between projects?

Hey all,
Is it possible to pass session variables between pages in separate
projects?
For example:
inetpub\thisproject\blah.aspx
has a session variable and response.redirects the user to
inetpub\anotherproject\test.aspx
When I try to access the session variable after the redirection, it
doesn't exist? I'm assuming this is because the two pages have separate
bin files? How can I pass a variable between these two?
Thanks.
*** Sent via Developersdex http://www.examnotes.net ***you can share session , if you can build both projects in to a single
web application
MSDN article explaning "Make Multiple Visual Studio .NET Projects
Participate in the Same Web Application"
http://support.microsoft.com/defaul...;en-us;307467#5
No, session data is not shared between separate applications.
You might look at other ways of passing data between applications, such as a
common database or passing values via post or querystring.
I hope this helps,
Steve C. Orr
MCSD, MVP
http://Steve.Orr.net
"Roy" wrote:

> Hey all,
> Is it possible to pass session variables between pages in separate
> projects?
> For example:
> inetpub\thisproject\blah.aspx
> has a session variable and response.redirects the user to
> inetpub\anotherproject\test.aspx
> When I try to access the session variable after the redirection, it
> doesn't exist? I'm assuming this is because the two pages have separate
> bin files? How can I pass a variable between these two?
> Thanks.
> *** Sent via Developersdex http://www.examnotes.net ***
>

Passing variables between projects?

Hey all,

Is it possible to pass session variables between pages in separate
projects?

For example:
inetpub\thisproject\blah.aspx
has a session variable and response.redirects the user to
inetpub\anotherproject\test.aspx

When I try to access the session variable after the redirection, it
doesn't exist? I'm assuming this is because the two pages have separate
bin files? How can I pass a variable between these two?

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***you can share session , if you can build both projects in to a single
web application

MSDN article explaning "Make Multiple Visual Studio .NET Projects
Participate in the Same Web Application"

http://support.microsoft.com/defaul...;en-us;307467#5
No, session data is not shared between separate applications.
You might look at other ways of passing data between applications, such as a
common database or passing values via post or querystring.

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://Steve.Orr.net

"Roy" wrote:

> Hey all,
> Is it possible to pass session variables between pages in separate
> projects?
> For example:
> inetpub\thisproject\blah.aspx
> has a session variable and response.redirects the user to
> inetpub\anotherproject\test.aspx
> When I try to access the session variable after the redirection, it
> doesn't exist? I'm assuming this is because the two pages have separate
> bin files? How can I pass a variable between these two?
> Thanks.
> *** Sent via Developersdex http://www.developersdex.com ***