How to Access web.config file using Java script

Posted by Xyz under JavaScript on 9/12/2008 | Views : 8141 | Status : [Member] | Replies : 2
i had the user control i want to get the details of configurationmanager,Appsetings from web.config. without adding webconfiguration file in solution explorer. using java script only.
i dont need .cs file in source file only i have to write java script functions and access it.

Thanks & Regards
XYZ




Responses

Posted by: Raja on: 9/13/2008 [Member] Starter

Up
0
Down
Dear

JavaScript runs on the client side and you will not be able to write any code that gets the data written at the server page.

There are alternatives, you can write xmlhttp (ajax) code to get the data from config file and catch into javascript but directly using javascript its not possible as per my knowledge. If you get any solution please share here.

Thanks

Regards,
Raja, USA

Xyz, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anup1252000 on: 8/2/2009 [Member] Starter

Up
0
Down
go through this

http://www.dotnetcurry.com/ShowArticle.aspx?ID=131

https://wordpress.com/pages/anuphosur.wordpress.com

Xyz, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response