thorpedosg

Untitled

Jul 18th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
Add Comment
Please, Sign In to add comment