F
fred
If configuration is cached, I can just use
is the following code necessary ?
this.lblMsg.Text = ConfigurationManager.AppSettings["abc"];
If configuration is not cached by the framekwork, I should
use
if ( Cache["abc"] == null)
{
Cache["abc"] = ConfigurationManager.AppSettings["abc"];
}
this.lblMsg.Text = Cache["abc"] as string;
I can't find document about this, can any one clarify?
thanks
is the following code necessary ?
this.lblMsg.Text = ConfigurationManager.AppSettings["abc"];
If configuration is not cached by the framekwork, I should
use
if ( Cache["abc"] == null)
{
Cache["abc"] = ConfigurationManager.AppSettings["abc"];
}
this.lblMsg.Text = Cache["abc"] as string;
I can't find document about this, can any one clarify?
thanks