Portable settings

Post Reply
aspmaker_fan
User
Posts: 47

Portable settings

Post 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


newbie
User
Posts: 2

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


MichaelG
User
Posts: 792

Post by MichaelG »

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


Post Reply