-2

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...

2 Answers2

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