|
-
Aug 30th, 2005, 07:59 AM
#1
Thread Starter
Hyperactive Member
Web.Config ..
Is it possible to Access Web.Config file from JavaScript in an ASP.NET application ?? If yes, could someone show me how ?
-
Aug 30th, 2005, 11:36 AM
#2
Re: Web.Config ..
No it isn't. IIS doesn't allow you to read web.config directly. Instead, you'll have to generate your javascript dynamically with values inserted from web.config. What do you want to accomplish?
-
Aug 30th, 2005, 03:15 PM
#3
Thread Starter
Hyperactive Member
Re: Web.Config ..
 Originally Posted by mendhak
No it isn't. IIS doesn't allow you to read web.config directly. Instead, you'll have to generate your javascript dynamically with values inserted from web.config. What do you want to accomplish?
My Web config has a key that I want to read on the fly ...
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="LegalAdmin.Admin.Jobs" value=[b]"http://localhost/Legal_TM/LegalAdmin_WS/Jobs.asmx"[b]/>
</appSettings>
</configuration>
Basically, its a Web Service address that I want to read from my java script ...
-
Aug 30th, 2005, 11:53 PM
#4
Re: Web.Config ..
I think you'll have to go with the javascript generation approach as I mentioned earlier.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|