469,963 Members | 2,084 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Global Shared functions, shared variables

Hello All,
How can I create a Global shared function that automatically gets shared
in all ASP.net files. The issue is that when a user comes to the site I am
creating, I check if the user is valid and based on that add session data,
but the problem is that this is in a user control , that gets fired after
the main page contents have been called, hence the session variables are not
found, for the first time. How can I set these session variables in a global
function so that it gets included in all ask files. I am using windows
authentication, so any help related to that will be great. Thanks a lot.
Imran.
Nov 19 '05 #1
1 1148
I'm not sure what you mean, but in the global.asax codebehind, you will
see several events where you can place your code (e.g. Session_Start,
....)

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by mrbog | last post: by
3 posts views Thread by sarmin kho | last post: by
7 posts views Thread by Aaron Deskins | last post: by
11 posts views Thread by Capstar | last post: by
7 posts views Thread by Michael | last post: by
2 posts views Thread by Nathan Sokalski | last post: by
37 posts views Thread by eoindeb | last post: by
5 posts views Thread by Sandman | last post: by
4 posts views Thread by BB206 | last post: by
3 posts views Thread by ankugoe7 | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.