Microsoft
Software
Hardware
Network
Question : ASP.NET - use web.config setting to populate page title
I've got the following setting in my web.config file...
<appSettings>
<add key="AppTitle" value="Ralph Sheffield"/>
</appSettings>
I've seen it done before where this app setting can be utilized in markup. Something like this...
<head runat="server">
<title><% ConfigurationManager.AppSe
ttings["Ap
pTitle"].T
oString();
%></title>
</head>
But this doesn't seem to be working.
So what is the correct way to do this?
Answer : ASP.NET - use web.config setting to populate page title
use =
<%= ConfigurationManager.AppSe
ttings["Ap
pTitle"].T
oString() %>
or you can set that in code-behind as well ...say in page_load:
Page.Title = ConfigurationManager.AppSe
ttings["Ap
pTitle"].T
oString();
Random Solutions
How do web hosting providers keep public ip addresses live when one ISP fails
In Sent Items, how can I tell if a message was sent with Read Receipt Requested
Parse autosys jil file using Unix tools
delays in receiving email internally
Validation of viewstate MAC failed? How I fix it?
Trigger destroys previous trigger
Repair of Win XP
vinegar and bugs
Shares unavailable
how to export the SSL certificate from Microsoft exchange 2003 in the .p12 format for mobile phone HTC Desire