469,958 Members | 2,035 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,958 developers. It's quick & easy.

I have a question about declaring the Global.ascx:

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

Mar 1 '07 #1
2 1873
"TARUN" <ta*********@gmail.comwrote in message
news:11**********************@8g2000cwh.googlegrou ps.com...
>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.

Mar 1 '07 #2
Hi,

"TARUN" <ta*********@gmail.comwrote in message
news:11**********************@8g2000cwh.googlegrou ps.com...
>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?
Mar 1 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Simon Harris | last post: by
3 posts views Thread by Robert Walter | last post: by
1 post views Thread by Asha | last post: by
5 posts views Thread by Daves | last post: by
7 posts views Thread by Ankit Aneja | last post: by
1 post views Thread by Raed Sawalha | last post: by
19 posts views Thread by Alan Silver | last post: by
reply views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.