Mega Code Archive

 
Categories / ASP.Net / Session Cookie
 

Store key value pair for entire application (C#)

<%@ Page Language="c#" %> <html>   <body>     <% Application["CompanyTelephone"] = "555 1234"; %>     <b>Application state changed successfully</b>   </body> </html> ////////////////////////////////////////////////////////////////////// <html>   <body>     <b>Company Telephone = <% Response.Write(Application("CompanyTelephone")) %>     </b>   </body> </html>