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
Clearing a submit form once submitted
How do I get our WAN address using Windows Power Shell
Can you setup Remote Desktop Gateway and Remote Desktop Services on the same Server
Need Code To Lock All Controls On Form
Configuring Netgear ProSafe DGFV338 for VPN Pass-through
ACCES and Excel Fastest way to transfer data
My.Application.Log.WriteEn
try is Not Writing to App Log
Any way to abort a web form file upload via Javascript?
Electric Wiring problem ?
Unable to install any framework .NET in XP Mode (Virtual PC)