I have a question about declaring the Global.ascx:

T

TARUN

I have a question about declaring the Global.ascx:

In VS.NET I create a Solution, and there are 4 projects under it. They
are put under 4 folders, but web pages would be called across the 4
projects. For example, web page Page1 in Project1 will redirect to web
page Page2 in Project2 which will further redirect to Page3 in
project3 and Page4 in Project4 and finally back to Page1.

In each web page, some session variables, such as customer ID, Product
ID will be used, so I declare these variables in Global.ascx. My
question is: Do I need to declare 4 Global.ascx files and in each file
I declare the same variables?


Tarun sinha
 
W

Willy Denoyette [MVP]

TARUN said:
I have a question about declaring the Global.ascx:

In VS.NET I create a Solution, and there are 4 projects under it. They
are put under 4 folders, but web pages would be called across the 4
projects. For example, web page Page1 in Project1 will redirect to web
page Page2 in Project2 which will further redirect to Page3 in
project3 and Page4 in Project4 and finally back to Page1.

In each web page, some session variables, such as customer ID, Product
ID will be used, so I declare these variables in Global.ascx. My
question is: Do I need to declare 4 Global.ascx files and in each file
I declare the same variables?


Tarun sinha

Please post asp.net questions to the asp.net NG at microsoft.public.dotnet.framework.aspnet

Willy.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

TARUN said:
I have a question about declaring the Global.ascx:

In VS.NET I create a Solution, and there are 4 projects under it. They
are put under 4 folders, but web pages would be called across the 4
projects. For example, web page Page1 in Project1 will redirect to web
page Page2 in Project2 which will further redirect to Page3 in
project3 and Page4 in Project4 and finally back to Page1.

In each web page, some session variables, such as customer ID, Product
ID will be used, so I declare these variables in Global.ascx. My
question is: Do I need to declare 4 Global.ascx files and in each file
I declare the same variables?

Each project will be a separated application. Not only you will have to
declare 4 global.asax but the sessions, application, etc will be
independentely.


Why don't you just consolidate it in one unique project?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top