How can I use the key value that is inside my web.config directly from the asp.net web page using <% $%>
See ASP.Net Expression Overview
Example from this page
Web.config ...
<appSettings> <add key="copyright" value="(c)Copyright 2004 Northwind Traders"/> </appSettings>
Then you can use ...
<%$ AppSettings: copyright %>
<%= ConfigurationManager.AppSettings["key_name"] %>
I think,
<%$Appsettings:KeyName %>
Must do what you need.
Used here AppSettingsExpressionBuilder, described here http://www.4guysfromrolla.com/demos/printPage.aspx?path=/articles/022509-1.aspx
AppSettingsExpressionBuilder
<%= ConfigurationManager.AppSettings["mySetting"] %>
Source: https://habr.com/ru/post/1744627/More articles:Как войти в расширение Chrome, построенное с использованием GWT, используя RPC - google-app-engineКак переопределить метод Содержит IQueryable во время unit test? - c#Elmah on MVC website with subcategory WordPress / php - phpPython PLY zero or more occurrences of a parsing element - pythonJavascript Prototype prototype event handlers - javascriptfastest way to upload xls file to database - databaseHow do I know if a MySQL UPDATE query has completed because the information provided matches the data already in the database? - mysqlView iPad Simulator - ios-simulatorPython: заменить URL-адреса с названиями имен из строки - pythonOracle Schema Name - c #All Articles