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
SSH console: go to specified folder after login
OMA and OWA
Make an Exception to Folder Redirect Group Policy Rule
LIKE operator in SQL not working
T-SQL: Count number of tables in the DB (SQL server 2008)
How to add safe senders in Outlook 2003 Junk filter using GPO
make a new bridge in cisco catalyst 2950
video driver needed
JSON Value Retrieve
PfSense Captive Portal / VmWare HELP