我可以阅读使用JQuery从web.config中的数据? [英] Can i read data from web.config using JQuery?
问题描述
我可以阅读使用JQuery从web.config中的数据?
Can i read data from web.config using JQuery ?
推荐答案
jQuery是,在浏览器中运行的JavaScript,你的web.config驻留在服务器上。如果你想从你的web.config公开数据,我想你应该创建某种web服务,你可以从客户端JavaScript调用得到你想要的数据。
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.
如果您将能够直接从web.config文件中读取,那么这将是为在web.config文件通常用于存储像连接字符串等敏感信息的重大安全隐患。
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.
这篇关于我可以阅读使用JQuery从web.config中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!