SHOW:
|
|
- or go back to the newest paste.
| 1 | Application["AppVar"] = "hello"; | |
| 2 | ||
| 3 | string appVar = HttpContext.Application["AppVar"] as string; | |
| 4 | ||
| 5 | using System.Web; | |
| 6 | .... | |
| 7 | if (HttpContext.Current != null && HttpContext.Current.Application != null) | |
| 8 | string appVar = HttpContext.Current.Application["AppVar"] as string; |