Guest User

Untitled

a guest
Jul 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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