-
IIS Application state variable vs Global variable from C# DLL assembly
Hi all,
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
as below:
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.
e.g.
<%@ import Namespace="Global.ConstData" % >
<% response.write ( Message.ErrorMsg() ) %>
whereby
in the DLL source :
namespace Global.ConstData
class Message
{
public constat String ErroMsg = "Error :- 01000 - blah blah ";
}
Which one better ?
Thanks,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks