title: How WebConfig appsetting value can be called inside a window.open function ASP.NET?
body: <pre><code>&lt;input id="Button1" type="button" value="button" onclick='window.open("https://google.com")' /&gt;
  </code></pre>
  
  <p>I have to change this using webconfig appsettings. </p>
  
  <p>In webconfig, I have </p>
  
  <pre><code>&lt;add key="Google" value="https://google.com"/&gt;
  </code></pre>
  
  <p>I have to get the url webconfig using the key.</p>
  
  <p>I have tried </p>
  
  <pre><code>&lt;input id="Button1" type="button" value="button" onclick='window.open("&lt;%= ConfigurationManager.AppSettings["Google"] %&gt;")' /&gt;
  </code></pre>
  
  <p>But it is not working.</p>
  
  <p>Could you find a solution to access the webconfig appsettings values in window.open function?</p>