Save asp.net user editable configuration settings -


i looking store few random global settings in asp.net mvc4 application affect entire application.

these setting need editable admins of site (i made small form)

they things current site wide discounts, promotion expiration dates, keys partner services, etc. dont fit in database because single (scalar) values don't fit list (or table). should in singleton object @ application level. yet need persisted - once admin changes value dont want reset because server (or application) reset.

i thought of storing them in web.config file through setting object. publish upgrades on regular basis , overwrite we.config on server.

you use following;

database (prefered)

xml file

plain text file

any of these give way of storing information , simple interface read , write allow application access. can store these in either application or session objects , use them accordingly.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -