473,395 Members | 1,653 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,395 software developers and data experts.

Session Start

I've written this code in the global.asax.cs file of my project:

void Session_Start(Object sender, EventArgs E)
{
...
}

but it isn't executed. Do I have something wrong or missed?

Thank you very much.
Nov 17 '05 #1
4 1180
You defined a function, but you didn't add the function as as Event Handler
for the event for which you wrote the function.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Alberto" <al*****@nospam.es> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
I've written this code in the global.asax.cs file of my project:

void Session_Start(Object sender, EventArgs E)
{
...
}

but it isn't executed. Do I have something wrong or missed?

Thank you very much.

Nov 17 '05 #2
Can you tell me how to do it?

Thank you.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> escribió en el mensaje
news:uI**************@TK2MSFTNGP11.phx.gbl...
You defined a function, but you didn't add the function as as Event Handler for the event for which you wrote the function.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Alberto" <al*****@nospam.es> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
I've written this code in the global.asax.cs file of my project:

void Session_Start(Object sender, EventArgs E)
{
...
}

but it isn't executed. Do I have something wrong or missed?

Thank you very much.


Nov 17 '05 #3
See the following .Net SDK article on the Microsoft web site:

http://msdn.microsoft.com/library/de...inwebforms.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Alberto" <al*****@nospam.es> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Can you tell me how to do it?

Thank you.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> escribió en el mensaje
news:uI**************@TK2MSFTNGP11.phx.gbl...
You defined a function, but you didn't add the function as as Event

Handler
for the event for which you wrote the function.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Alberto" <al*****@nospam.es> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
I've written this code in the global.asax.cs file of my project:

void Session_Start(Object sender, EventArgs E)
{
...
}

but it isn't executed. Do I have something wrong or missed?

Thank you very much.



Nov 17 '05 #4
it's already done for you in the global file just put your code in there

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Alberto" <al*****@nospam.es> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Can you tell me how to do it?

Thank you.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> escribió en el mensaje
news:uI**************@TK2MSFTNGP11.phx.gbl...
You defined a function, but you didn't add the function as as Event

Handler
for the event for which you wrote the function.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Alberto" <al*****@nospam.es> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
I've written this code in the global.asax.cs file of my project:

void Session_Start(Object sender, EventArgs E)
{
...
}

but it isn't executed. Do I have something wrong or missed?

Thank you very much.



Nov 17 '05 #5

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
9
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background...
5
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
16
by: Jonathan Wood | last post by:
Greetings, I was wondering if anyone here has a good understaning of the Session object. I know there are options like the Session.Abandon method and the regenerateExpiredSessionId setting,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.