Search code examples
jqueryiosgetweb-configusing

Get Web.config value through jquery


Can I read data from web.config using JQuery ?

<appSettings>
   <add key="Phone" value="1"/>
   <add key="Fax" value="1"/>
</appSettings>

I need to get Phone value through jquery


Solution

  • I would make a webservice that returns the values for you. You dont have direct access to the web.config from javascript