473,498 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Global.asax and Page_onload

hi,
I have the following code in my global.asax
<%@ Application Codebehind="Global.asax.cs" Inherits="FrontOfficeDotNet.Global" %><OBJECT
RUNAT="SERVER"
SCOPE="SESSION"
ID="SessionManager"
CLASS="NGFOSession.SessionManager"></OBJECT>

how do I reference hte SessionManager object in the page_load event of a web page eaBlank.aspx.cs
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
Regards.
Nov 18 '05 #1
2 2032
you can't unless the object can run at the server

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"big Man" <an*******@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
hi,
I have the following code in my global.asax
<%@ Application Codebehind="Global.asax.cs"
Inherits="FrontOfficeDotNet.Global" %><OBJECT
RUNAT="SERVER"
SCOPE="SESSION"
ID="SessionManager"
CLASS="NGFOSession.SessionManager"></OBJECT>

how do I reference hte SessionManager object in the page_load event of a
web page eaBlank.aspx.cs
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
Regards.

Nov 18 '05 #2
you can't unless the object can run at the server

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"big Man" <an*******@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
hi,
I have the following code in my global.asax
<%@ Application Codebehind="Global.asax.cs"
Inherits="FrontOfficeDotNet.Global" %><OBJECT
RUNAT="SERVER"
SCOPE="SESSION"
ID="SessionManager"
CLASS="NGFOSession.SessionManager"></OBJECT>

how do I reference hte SessionManager object in the page_load event of a
web page eaBlank.aspx.cs
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
Regards.

Nov 18 '05 #3

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

Similar topics

1
459
by: big Man | last post by:
hi, I have the following code in my global.asax <%@ Application Codebehind="Global.asax.cs" Inherits="FrontOfficeDotNet.Global" %><OBJECT RUNAT="SERVER" SCOPE="SESSION" ID="SessionManager"...
22
3720
by: fd123456 | last post by:
Hi Tom ! Sorry about the messy quoting, Google is playing tricks on me at the moment. > Global.asax is where you normally have the Global Application > and Session variables and code to...
12
3796
by: John M | last post by:
Hello, On Microsoft Visual Studio .NET 2003, I want to use some global elements, that can be used in each one of my pages. i.e I put a oleDBConnection on global.asax.vb How can I use it...
8
4844
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
5
14976
by: ad | last post by:
The Global.asax is code-inside with default. How to change Global.asax to code-behind?
11
8311
by: Ron | last post by:
I have a web project compiled with the new "Web Deployment Projects" plugin for VS2005. I'm deploying the web project to one assembly and with updateable option set to ON. When I'm running the...
4
3015
by: Al Santino | last post by:
Hello, I've created a simple C# web services project using Visual Studio 2005. My service compiles and runs correctly when called by remote clients. I'm able to step through the service in the...
16
5008
by: thefritz_j | last post by:
We just converted our VS2003 1.1 VB web project (which was working fine) to VS2005 2.0 and now I get: Parser Error Message: Could not load type '<Namespace>.'. Source Error: Line 1: <%@...
8
13172
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
15
2524
by: =?Utf-8?B?UGF0Qg==?= | last post by:
Just starting to move to ASP.NET 2.0 and having trouble with the Global.asax code file. In 1.1 I could have a code behind file for the global.asax file. This allow for shared variables of the...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
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
5464
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,...
1
4915
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...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.