473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Session State 2 Webprojects

Hi,

Is it possible to share Session/Application State across different Asp.net
webapplication (one in VB.net )
and the other is C# ?

If so can you guide me ?

-Regards'
Arun
Nov 18 '05 #1
5 1522
What is your scenario ? By definition, an application is supposed to deal
with its own set of variables.

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:uC**************@TK2MSFTNGP10.phx.gbl...
Hi,

Is it possible to share Session/Application State across different Asp.net
webapplication (one in VB.net )
and the other is C# ?

If so can you guide me ?

-Regards'
Arun

Nov 18 '05 #2
Hi,
I have one application in VB.net and other one in C#.

Whenever I try to through a link navigate the pages from Vb.net to C# I
lose the session control.

Hope you understand what I am trying to convey.

-Thanks
Arun

"Patrice" <no****@nowhere.com> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
What is your scenario ? By definition, an application is supposed to deal
with its own set of variables.

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:uC**************@TK2MSFTNGP10.phx.gbl...
Hi,

Is it possible to share Session/Application State across different Asp.net webapplication (one in VB.net )
and the other is C# ?

If so can you guide me ?

-Regards'
Arun


Nov 18 '05 #3
Hummmm, I see technically the problem but I don't understand what you need
to share (all variables ?).

Actually it looks like to me there is a design problem. What you describe
looks like a single application that is for some reason broken into two
different parts.

If this is really two distinct applications, I don't see why you would want
to share *all* variables. You could however :
- implement single sign on (so that you have to log once)
- consume some results from one from the other (web service perhaps)
- pass for some reason a speicif information from one to the other

Are they usable each one alone or are those VB.NET pages making sense only
when used with C# pages ?

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:u0**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have one application in VB.net and other one in C#.

Whenever I try to through a link navigate the pages from Vb.net to C# I
lose the session control.

Hope you understand what I am trying to convey.

-Thanks
Arun

"Patrice" <no****@nowhere.com> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
What is your scenario ? By definition, an application is supposed to deal
with its own set of variables.

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:uC**************@TK2MSFTNGP10.phx.gbl...
Hi,

Is it possible to share Session/Application State across different

Asp.net webapplication (one in VB.net )
and the other is C# ?

If so can you guide me ?

-Regards'
Arun



Nov 18 '05 #4
It's not two distinct application.

Initially we started in VB.net and later when we found experienced guy in c#
we
moved to C#.

The problem is some of the master files are in VB.net and for the users it
definitely needs to shown
from C# pages.

RIGHT now don't have time to convert vb.net files to C#.

That's the scenario.

Bye
Arun
"Patrice" <no****@nowhere.com> wrote in message
news:e1**************@tk2msftngp13.phx.gbl...
Hummmm, I see technically the problem but I don't understand what you need
to share (all variables ?).

Actually it looks like to me there is a design problem. What you describe
looks like a single application that is for some reason broken into two
different parts.

If this is really two distinct applications, I don't see why you would want to share *all* variables. You could however :
- implement single sign on (so that you have to log once)
- consume some results from one from the other (web service perhaps)
- pass for some reason a speicif information from one to the other

Are they usable each one alone or are those VB.NET pages making sense only
when used with C# pages ?

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:u0**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have one application in VB.net and other one in C#.

Whenever I try to through a link navigate the pages from Vb.net to C# I
lose the session control.

Hope you understand what I am trying to convey.

-Thanks
Arun

"Patrice" <no****@nowhere.com> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
What is your scenario ? By definition, an application is supposed to deal with its own set of variables.

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:uC**************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Is it possible to share Session/Application State across different

Asp.net
> webapplication (one in VB.net )
> and the other is C# ?
>
> If so can you guide me ?
>
> -Regards'
> Arun
>
>



Nov 18 '05 #5
For now using both C# and VB.NET in a single project is AFAIK not supported
in VS.NET (supported in VS.NET 2005 ?)

My approach would rather to make this a single application.

I believe that you should be able to create a batch file that calls the
VB.NET compiler to create a DLL from all the VB.NET code-behind files.
Similarly, you'll call also the C# compiler to create a DLL that includes
the code behind for the C# pages.

Now put those two DLLs in your app bin directory, and all your pages under
the same tree. You should have now a single application that uses these two
DLLs.

For now, I'm using something similar to build distincts DLLs (this is an
intranet application, compiling the code-behind in multiple DLLs allows us
to update a module on our production server while others are still under
revision). I would say it should work as well for VB.NET and C# code behind
files (as it doesn't matter once they are compiled into a DLL).

The other approch would be to pass back and forth values between the two
applications. Basically :
- either you can drop session state (using a db for example) but you'll have
to update the code, depnds how much you rely on state variables
- you could certainly have a way to pass value back and worth (such as a
wrapper that post the new session value to the other session each time you
change a session or a variable)
- you'll have possibly to handle single sign on issue and to handle the
correspondance between the two sessions running for each single user on both
servers.

All in all it's likely more work and would be much more error prone (and
would become useless if VS.NET 2005 improves this as it looks to be the case
with the MsBuild feature).

Good luck.

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP10.phx.gbl...
It's not two distinct application.

Initially we started in VB.net and later when we found experienced guy in c# we
moved to C#.

The problem is some of the master files are in VB.net and for the users it
definitely needs to shown
from C# pages.

RIGHT now don't have time to convert vb.net files to C#.

That's the scenario.

Bye
Arun
"Patrice" <no****@nowhere.com> wrote in message
news:e1**************@tk2msftngp13.phx.gbl...
Hummmm, I see technically the problem but I don't understand what you need to share (all variables ?).

Actually it looks like to me there is a design problem. What you describe looks like a single application that is for some reason broken into two
different parts.

If this is really two distinct applications, I don't see why you would

want
to share *all* variables. You could however :
- implement single sign on (so that you have to log once)
- consume some results from one from the other (web service perhaps)
- pass for some reason a speicif information from one to the other

Are they usable each one alone or are those VB.NET pages making sense only when used with C# pages ?

Patrice

"Arun" <ar**@intersightglobal.com> a écrit dans le message de
news:u0**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have one application in VB.net and other one in C#.

Whenever I try to through a link navigate the pages from Vb.net to C# I lose the session control.

Hope you understand what I am trying to convey.

-Thanks
Arun

"Patrice" <no****@nowhere.com> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
> What is your scenario ? By definition, an application is supposed to

deal
> with its own set of variables.
>
> Patrice
>
> "Arun" <ar**@intersightglobal.com> a écrit dans le message de
> news:uC**************@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > Is it possible to share Session/Application State across different
Asp.net
> > webapplication (one in VB.net )
> > and the other is C# ?
> >
> > If so can you guide me ?
> >
> > -Regards'
> > Arun
> >
> >
>
>



Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: .NET Follower | last post by:
hi, i want to session state among different webprojects in my solution... any one has the solution...... -- Thanks and Regards, Amit Agarwal
2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
1
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
2
by: Ahmed | last post by:
Dear All, I have three web applications that I want to provide one single web interface to all of them. If I am able to share the session between them, It will be great. so is this possibel?
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
6
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I have a solution with four webprojects developed in Visual Studio 2003. It is upgraded to Visual Studio Team System 2005 / Framework 2.0. Now I tried to AJAX enable one of the web projects. ...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.