472,328 Members | 1,013 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 1973
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

35
by: wired | last post by:
Hi, I've just taught myself C++, so I haven't learnt much about style or the like from any single source, and I'm quite styleless as a result....
4
by: Simon Harris | last post by:
Hi All, I'm new to ASP.Net, so be gentle! (Plenty of 'classic' ASP experience), just one question... - Am I correct in thinking that global...
3
by: Robert Walter | last post by:
I want to user the Page method LoadControl inside the Global.asax.cs but when I instantiate a page and try it I get the following error... ...
1
by: Asha | last post by:
i want to keep a global variable or a session in global.ascx when ever a user access this particular page. at certain time, this page will do a...
5
by: Daves | last post by:
emm... what exactly is the difference?! If I want a global file without <script></script> tags could I use global.ascx only like class Global {...
7
by: Ankit Aneja | last post by:
I put the code for url rewrite in my Application_BeginRequest on global.ascx some .aspx pages are in root ,some in folder named admin and some in...
1
by: Raed Sawalha | last post by:
I have Solution with multiple project as following hierarchy Parent Child Child Child the parent is the ONLY one has the Global.ascx , now...
19
by: Alan Silver | last post by:
Hello, I have been developing ASP.NET with a text editor so far (better way to learn initially), and have now been trying Visual Web Developer. I...
0
by: Nathan Sokalski | last post by:
I have several UserControls (*.ascx files) that I register in my Web.config file under the <system.web><pages><controlselement. If I mistype the src...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.