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
can't find Printer Setup Utility in Mac OS X 10.5.8
Cisco VPN Client 5.0.07.0290 on Windows 7 64 bit
VMware Workstation 7.1 Won't Install
How to sync iphone 3.1.3 with exchange server 2003
CRM 4.0 - Contracts Expiring at a specific time?
IBM Think Pad HD error
Excel treeview object
vb.net httpwebrequest timeout not working correctly
Emphasize an out of range value in Excel.
Upgrade Sqlite in RHEL5.4