IIS Application state variable vs Global variable from C# DLL assembly
I want to have constant values to be shared by all the ASPX files in the
entire web application.
Would like to know in term of performance :- memory usage & speed & scalability
on these two methods as below:
1) Using IIS application state variables set in global.asax and use by ASPX
e.g. <% response.write ( Application["Message"] ) %>
2) Using DLL assembly and import the namespace in any of the ASPX file that
needs to use the variables.
<%@ import Namespace="Global.ConstData" % >
<% response.write ( Message.ErrorMsg() ) %>
in the DLL source :
public constat String ErroMsg = "Error :- 01000 - blah blah ";
Which one better ?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL