c# - Can you use Settings.Settings file for ASP.Net sites also? -


I have a code base that is used as ASP.NET web application. It is now being used as part of outside branches and two WinForms applications.

The main difference is that the WinForms application should store "per user" their settings and the web app needs to store settings only at the "apps" level. They are similar settings, but are stored differently depending on the type of application

Explanation: Using the same code as the foundation for a website site as well as code base for the desktop application Will be done. The settings in the desktop application should be stored in the appropriate user directory, but this is not useful when the same code is turning on the web app. So the dilemma for web app from the web.config-type status to the desktop app. How to switch to the config-type status (stored in the proper directory).

Does anyone know that the settings.settings file is useful for a web app?

Is there a better way to store the same settings in two different ways?

Yes, you can use settings.Settings files for web application projects. Set it up in your WinForms projects with a web project, though you are limited to the application scope - you can not create user-scops settings.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -