Can i read data from web.config using JQuery ?
+13
A:
Jquery is javascript that runs in your browser, your web.config resides on your server. If you want to expose data from your web.config, I think you should create some kind of webservice that you can call from the client side javascript to get the data you want.
If you would be able to directly read from the web.config file, then it would be a major security risk as the web.config file is often used for storing sensitive information like connection strings etc.
Thomas
2010-05-10 09:56:26
Thanks for your explanation also i found this near to your solution http://www.dotnetcurry.com/ShowArticle.aspx?ID=131
Space Cracker
2010-05-10 10:30:13
That solution actually puts the connectionstring of your sql server into the response! From a security pov thats about as bad as code gets.
James Westgate
2010-05-10 10:35:18
A:
Space Cracker
2010-05-10 10:39:49