473,402 Members | 2,046 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,402 software developers and data experts.

Assign session onEnd event handler at run-time

Hello,

I am looking for solution to assign the Session.onEnd event handler
dynamically, at runtime, without using global.asax file. I am a bit sceptic
wether that is possible, however I thought maybe it is possible to have a
global.asax file with Session_onEnd method, that merely calls some delegate,
and that delegate is assigned by my web application at runtime.

Maybe there is some example ready?

Thanks,

Pavils
Nov 18 '05 #1
3 1899
just code a session on end routine in global.asax that implements this
model.

-- bruce (sqlwork.com)
"Pavils Jurjans" <pa****@mailbox.riga.lv> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
Hello,

I am looking for solution to assign the Session.onEnd event handler
dynamically, at runtime, without using global.asax file. I am a bit sceptic wether that is possible, however I thought maybe it is possible to have a
global.asax file with Session_onEnd method, that merely calls some delegate, and that delegate is assigned by my web application at runtime.

Maybe there is some example ready?

Thanks,

Pavils

Nov 18 '05 #2
why? the purpose of the event in the global file is that it can be called
application wide. Your intention is to re-invent the wheel. Do you have a
good reason for this?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Pavils Jurjans" <pa****@mailbox.riga.lv> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
Hello,

I am looking for solution to assign the Session.onEnd event handler
dynamically, at runtime, without using global.asax file. I am a bit
sceptic
wether that is possible, however I thought maybe it is possible to have a
global.asax file with Session_onEnd method, that merely calls some
delegate,
and that delegate is assigned by my web application at runtime.

Maybe there is some example ready?

Thanks,

Pavils

Nov 18 '05 #3
The reason is that in my application, depending on what user was doing
during the session lifetime, different session end handling rountines could
be selected. An the other reason is, I am developing a framework where all
the code is abstracted away in DLLs, and the pages use just codebehind. I
don't want to touch global.asax afterwards anymore, just handle it's events
via code in DLLs. It's not reinventing the wheel. In fact, it's just pure
fully-code-driven application approach - dealing only with DLLs and leaving
alone all these aspx and asax files. That allows to extend application at
runtime without need to create new aspx/asax files.

-- Pavils

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
why? the purpose of the event in the global file is that it can be called
application wide. Your intention is to re-invent the wheel. Do you have a
good reason for this?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Pavils Jurjans" <pa****@mailbox.riga.lv> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
Hello,

I am looking for solution to assign the Session.onEnd event handler
dynamically, at runtime, without using global.asax file. I am a bit
sceptic
wether that is possible, however I thought maybe it is possible to have a global.asax file with Session_onEnd method, that merely calls some
delegate,
and that delegate is assigned by my web application at runtime.

Maybe there is some example ready?

Thanks,

Pavils


Nov 18 '05 #4

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

Similar topics

4
by: Brett Porter | last post by:
Howdy, For a challenge I took on a very large project and have decided to develop it on Red Hat, using PHP and MySQL. I am pleased to say that using Red Hat, PHP and MySQL has been extremely...
3
by: JezB | last post by:
I want to clear some specific Session variables when the user closes a page. On my page I have a "return to ..." button which navigates back to the parent page from which it was invoked - under the...
4
by: VB Programmer | last post by:
In my asp.net app I'm logging whenever someone signs in through the login page successfully. How do I log when they've "gone away", whether by closing the browser, the session vars for a person...
3
by: Simon | last post by:
Hi all, Any help with this would be much appreciated: I have a site where the session needs to timeout because of security concerns. I want to send the user back to the login page if the...
5
by: Raghu Raman | last post by:
HI, am using a simple project in asp.net using c#. if i put the break point in the application start & session start event , they are firing good .BUT WHEN i close my project while running on...
3
by: Phillip N Rounds | last post by:
I'm writing a user control which has two states: Active & InActive. I additionally am required that there to be only one active control per page, and all logic has to be contained within the...
11
by: David Thielen | last post by:
Hi; Is there some kind of session ID variable that I can get in the code behind and that is available in Session_OnEnd() to know what session ended? -- thanks - dave...
7
by: Ty | last post by:
Hi, All- I have a custom httphandler that outputs an image to the browser based upon some user input. I'd like to be able to store information about that image in session and have them...
18
by: joaotsetsemoita | last post by:
Hello everyone, I'm having troubles assigning an onclick event to a cell. Im trying something like cursorPoint.cells.style.cursor = "hand"; cursorPoint.cells.width = "20";...
3
by: =?ISO-8859-1?Q?Norbert_P=FCrringer?= | last post by:
Hello, I've got a recursive data model, where the root object gets a certain event handler: DataObject root = new DataObject(); root.DataObjectCreated += new...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...
0
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...

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.