tagged [global]
How to handle session end in global.asax?
How to handle session end in global.asax? I'm working in chat application, I used HashTable for containing User and Operator as a Key & Object of ChatRoom Class as a value of HashTable. Main problem i...
- Modified
- 7 Mar at 12:22
Share variables between files in Node.js?
Share variables between files in Node.js? Here are 2 files: When I don't have "var" it works. But when I have: name will be undefined in main.js. I have heard that global variables are bad and you bet...
- Modified
- 12 Jul at 07:13
How do I access the Properties namespace from within a console app?
How do I access the Properties namespace from within a console app? I am trying to store/retrieve a value that is stored in the Application Settings. From within my console application I can not seem ...
- Modified
- 11 May at 22:43
how do you wire up Application_BeginRequest() in asp.net-mvc
how do you wire up Application_BeginRequest() in asp.net-mvc I see in `global.asax.cs` from an ASP.NET MVC project but when I try to add this to my project, I don't see what is calling this method. I ...
- Modified
- 29 Sep at 01:58
C# Namespace Alias qualifier (::) vs Dereferencing Operator (.)
C# Namespace Alias qualifier (::) vs Dereferencing Operator (.) Quick and simple question. I kind of understand what the Namespace Alias qualifier does, it's for accessing members in a namespace, howe...
- Modified
- 28 Aug at 06:39
How do I declare a global variable in VBA?
How do I declare a global variable in VBA? I wrote the following code: And I get the error message: > "invalid attribute in Sub or Function" Do you know what I did wrong? I tried to use `Global` inste...
- Modified
- 8 Jul at 19:39
How to make a cross-module variable?
How to make a cross-module variable? The `__debug__` variable is handy in part because it affects every module. If I want to create another variable that works the same way, how would I do it? The var...
How can I unset a JavaScript variable?
How can I unset a JavaScript variable? I have a global variable in JavaScript (actually a `window` property, but I don't think it matters) which was already populated by a previous script, but I don't...
- Modified
- 24 Jul at 17:20
How to create global object in a C# library
How to create global object in a C# library > [Best way to make data (that may change during run-time) accessible to the whole application?](https://stackoverflow.com/questions/11781131/best-way-to-m...
- Modified
- 23 May at 11:59
Why isn't the 'global' keyword needed to access a global variable?
Why isn't the 'global' keyword needed to access a global variable? From my understanding, Python has a separate namespace for functions, so if I want to use a global variable in a function, I should p...
- Modified
- 10 Sep at 09:37
How to declare a global variable in a .js file
How to declare a global variable in a .js file I need a few global variables that I need in all `.js` files. For example, consider the following 4 files: 1. global.js 2. js1.js 3. js2.js 4. js3.js Is ...
- Modified
- 10 Jul at 13:40
How can global function exist in C#?
How can global function exist in C#? How can global function exist in C# when everything is defined inside a class? I was reading the documentation of [OpCodes.Call](http://msdn.microsoft.com/en-us/li...
How can I use Server.MapPath() from global.asax?
How can I use Server.MapPath() from global.asax? I need to use `Server.MapPath()` to combine some files path that I store in the `web.config`. However, since `Server.MapPath()` relies on the current H...
- Modified
- 10 Feb at 09:45
global variable for all controller and views
global variable for all controller and views In Laravel I have a table settings and i have fetched complete data from the table in the BaseController, as following Now i want to access $site_settings....
- Modified
- 3 Oct at 14:12
Method invocation is skipped in C#?
Method invocation is skipped in C#? I have this simple code : However re-sharper scream (no-error only suggest) about : ![enter image description here](https://i.stack.imgur.com/mbiPq.jpg) > Method in...
- Modified
- 3 Jan at 11:55
How to define global variable in Google Apps Script
How to define global variable in Google Apps Script I see most examples from Google is they use only functions in a single giant script. e.g. [https://developers.google.com/apps-script/quickstart/macr...
- Modified
- 15 May at 09:48
how many times is System.Web.HttpApplication is initialised per process
how many times is System.Web.HttpApplication is initialised per process I have the `global.asax` which extends from a custom class I created, called `MvcApplication` which extends from `System.Web.Htt...
- Modified
- 24 Oct at 17:2
Why do I get a "referenced before assignment" error when assigning to a global variable in a function?
Why do I get a "referenced before assignment" error when assigning to a global variable in a function? In Python, I'm getting the following error: At the start of the file (before the function where t...
- Modified
- 24 Oct at 14:31
How to get global access to enum types in C#?
How to get global access to enum types in C#? This is probably a stupid question, but I can't seem to do it. I want to set up some enums in one class like this: Then have that enum type accessible to ...
- Modified
- 23 Apr at 08:23
Global functions in javascript
Global functions in javascript I'm new to js and trying to understand global and private functions. I understand global and local variables. But if I have an html named `test.html` and a 2 js files na...
- Modified
- 19 Feb at 10:8
C# ASP.NET: how to access cache when no HttpContext.Current is available (is null)?
C# ASP.NET: how to access cache when no HttpContext.Current is available (is null)? During `Application_End()` in Global.aspx, HttpContext.Current is null. I still want to be able to access cache - , ...
- Modified
- 15 Dec at 08:25
Best way to tackle global hotkey processing in c#?
Best way to tackle global hotkey processing in c#? > [How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?](https://stackoverflow.com/questions/48935/how-can-i-regis...
"Could not load type [Namespace].Global" causing me grief
"Could not load type [Namespace].Global" causing me grief In my .Net 2.0 Asp.net WebForms app, I have my Global.asax containing the following code: However when I build I get an error stating- > Could...
- Modified
- 31 Jan at 01:13
Default values and initialization in Java
Default values and initialization in Java Based on [my reference](http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html), primitive types have default values and Objects are null. I ...
- Modified
- 17 Jan at 03:21
How to programmatically determine if .NET assembly is installed in GAC?
How to programmatically determine if .NET assembly is installed in GAC? What's the easiest way to check programmatically if an assembly is registered in the GAC (Global Assembly Cache) on the local ma...
- Modified
- 18 Oct at 18:23