c# - Read Configuration Settings of Web.config in ASP.Net project using Javascript File -


i want read web.config settings through javascript file.
i have below reference link suggest same works when add code in .aspx file , not when put .js file. http://www.codeproject.com/tips/77917/read-configuration-settings-of-web-config-using-ja

is possible code in .js file?

no, , shouldn't want (you can changing iis isapi file handler, no!). web.config file file needs secured heavily, since can contain usernames , passwords databases , other resources. the web.config should not exposed outside world!

that said, might opt create ashx or aspx reads specific part of web.config , exposes page, far go.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -