Click here to Skip to main content
15,923,197 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So, I want to create a one time setup page to get company information such as name and logo etc. and every time on application startup i want to check if these settings exists. If not; then i would like to redirect the user to a settings page instead of default index page. i do not want these application settings to be in the database. What is the best way to do this with application settings in the web.config?

What I have tried:

I am confused if global.asax is the right place. but i dont think, we can get controller context in there. and how would it override, the standard map routes.
Posted
Updated 6-Apr-19 11:42am

1 solution

 
Share this answer
 
Comments
selfrage 6-Apr-19 18:42pm    
Hi Gerry, thanks for the link. My question was not about how to modify web.config. I want to know where to put the code that runs on application startup? and if the code finds some settings missing in web.config, i want the user to be redirected to a settings actions method instead of the default index method.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900