Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Global Shared functions, shared variables

Reply
Thread Tools

Global Shared functions, shared variables

 
 
Imran Aziz
Guest
Posts: n/a
 
      08-22-2005
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.


 
Reply With Quote
 
 
 
 
Stefan
Guest
Posts: n/a
 
      08-22-2005
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,
....)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
global variable is shared in shared library ankugoe7@gmail.com C Programming 1 07-15-2008 04:26 PM
Initialize global variable before any other global variables jubelbrus C++ 5 07-20-2007 06:38 PM
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 1 10-25-2006 06:50 PM
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 0 10-25-2006 01:04 PM
Global variables on par with ASP's global.asa Wayne ASP .Net 2 11-11-2003 10:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57