Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Application["AppVar"] = "hello";
- string appVar = HttpContext.Application["AppVar"] as string;
- using System.Web;
- ....
- if (HttpContext.Current != null && HttpContext.Current.Application != null)
- string appVar = HttpContext.Current.Application["AppVar"] as string;
Add Comment
Please, Sign In to add comment