Can anybody help me...I already google for almost 3 hours,but no solution found...How to set app.config value using javascript in C#?? Thanks...
Asked
Active
Viewed 368 times
-2
-
6question makes no sense. – Mitch Wheat Dec 07 '11 at 10:06
-
2Please explain what you mean by "using javascript in c#" – Ben Robinson Dec 07 '11 at 10:12
2 Answers
1
I assume you want to edit app.Config and you can't
App.config is serverside and javascript is clientside

Morten Anderson
- 2,301
- 15
- 20
1
If you are crazy you might beable to use javascript and manipulate the app.config as if it is just plain xml
XML string manipulation in JS?
Madness though.
Even manipulating the config file through c# isn't the best idea. app.config is for initial setup - values that won't change during the lifetime of the app.
2nd answer here Is switching app.config at runtime possible? gives further details / reasons for not meddling

Community
- 1
- 1

Crab Bucket
- 6,219
- 8
- 38
- 73