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
Post a Comment