G
G
Hello,
Is it possible (and / or wise) to add custom pieces of code inside your
Web.Config file? For example I store the connection string in Web.Config
and access it via ConfigurationSettings.AppSettings["ConnectionString"]. Is
it possible to call on ConfigurationSettings.AppSettings["MyCustomString"]
which pulls back my stored string?
For example can I add this in Web.Config:
<add key="Author" value="All articles on this site written by Inspector
Gadget & associates" />
And then from my in my code behind file
lblPageFooter.text = ConfigurationSettings.AppSettings["Author"]
Would there be any benifit doing this?
G.
Is it possible (and / or wise) to add custom pieces of code inside your
Web.Config file? For example I store the connection string in Web.Config
and access it via ConfigurationSettings.AppSettings["ConnectionString"]. Is
it possible to call on ConfigurationSettings.AppSettings["MyCustomString"]
which pulls back my stored string?
For example can I add this in Web.Config:
<add key="Author" value="All articles on this site written by Inspector
Gadget & associates" />
And then from my in my code behind file
lblPageFooter.text = ConfigurationSettings.AppSettings["Author"]
Would there be any benifit doing this?
G.