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 ?
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center