因此,我想创建一次性设置页面以获取公司信息,例如名称和徽标等。每次在应用程序启动时,我想检查这些设置是否存在。如果不;然后我想将用户重定向到设置页面而不是默认索引页面。我不希望这些应用程序设置在数据库中。使用web.config中的应用程序设置执行此操作的最佳方法是什么? 我尝试过: 如果global.asax是正确的地方我很困惑。但我不认为,我们可以在那里获得控制器上下文。以及如何覆盖标准地图路线。
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.
推荐答案使用C#(.NET)以编程方式更改web.config - Stack Overflow [ ^ ]
更多推荐
如何为应用程序设置创建一次性设置页面
发布评论