title: How to access web.config settings directly in .aspx page?
body: <p>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 particular image src. </p>
  
  <p>I wanted to read that settings only in aspx page not in codebehind.</p>
  
  <p>For example </p>
  
  <p>Below is my code:</p>
  
  <pre><code>Web.Config:
  &lt;add key="ImagePath" value="http://192.168.0.181/Labeling/Images/"/&gt;
  </code></pre>
  
  <p>and in my aspx page,</p>
  
  <pre><code>&lt;img id="ImgHeader" runat="server" src="&lt;%ConfigurationManager.AppSettings["ImagePath"]%&gt;" /&gt;
  </code></pre>