I\'ve created a web page and it contains some settings value in Web.Config for example images. So I want to give the path of images in Web.Config file and file name in that
<img id="ImgHeader" runat="server" src="<%$ ConfigurationSettings.AppSettings["ImagePath"] %>" />
Should do the trick.
<%= ConfigurationSettings.AppSettings["ImagePath"] %>
Waqas Iqbal's answer:
<%$ AppSettings:ImagePath %>
from Binding ASP.Net Web.Config Settings To .ASPX File <a href></a>? worked nicely!
This worked for me:
<%= ConfigurationManager.AppSettings("ImagePath") %>