Page 1 of 1

Portable settings

Posted: Thu Nov 08, 2018 4:37 am
by aspmaker_fan

Store SMTP settings and upload folder settings in JSON encrypted format just like DB settings.

The settings are seems to be hard coded in ewcfg.cs and compiled at the moment. No access to these settings after compiling them.

Could we store all the Advanced settings which are not used by the ASP.NET Maker run time generation, in a JSON file?

Zam


Re: Portable settings

Posted: Tue Mar 19, 2019 7:29 am
by newbie

I had the same question. in classic asp, I believe the ew.cfg can be edited after site is deployed. I had tried editing the appsetttings.json file then reading the values in on Page Load - no compile error, but when I looked the appsettings files I had edited did not contain my edits. So it seems the json file is ovewritten or something.


Re: Portable settings

Posted: Tue Mar 19, 2019 10:04 am
by MichaelG

You can set the config settings with Class_Init server event, see Server Events and Client Scripts in docs.