im wanting to know the fastest way to access my globals... they will only change in the beta testing phase. before we go live. from then on they wont change ever.
im thinking that there is an overhead in getting stuff from web.config also its neater code wise to write App.HostUrl instead of ConfigurationManager.AppSettings["HostUrl"].ToString()
app.cs
public class App {
public const string HostUrl = "http://www.{domain}.co.uk";
public const string iHostUrl = "http://img.{domain}.co.uk";
}
or
web.config
<appSettings>
<add key="HostUrl" value="http://www.{domain}.co.uk" />
<add key="iHostUrl" value="http://img.{domain}.co.uk" />
<appSettings>