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
ADmodify.exe "mailbox rights modification disabled" ??
Exchange 2010 setup.com /preparead fails
activex script in dts to see if records are in table
ClearOS Enterprise 5.2 Alpha 1
Office 2003 - dollar sign shows up as an arrow
Exchange 2010 replication over a WAN with high latency
Using System.Type in switch()
jquery validator and asp.net updatepanel
Move Sharepoint 2010 DB's from one server to another
Dot Net IL Code to C# conversion