如何为应用程序设置创建一次性设置页面

编程入门 行业动态 更新时间:2024-10-25 18:32:52
本文介绍了如何为应用程序设置创建一次性设置页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

因此,我想创建一次性设置页面以获取公司信息,例如名称和徽标等。每次在应用程序启动时,我想检查这些设置是否存在。如果不;然后我想将用户重定向到设置页面而不是默认索引页面。我不希望这些应用程序设置在数据库中。使用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 [ ^ ]

更多推荐

如何为应用程序设置创建一次性设置页面

本文发布于:2023-10-23 22:34:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1522196.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:何为   应用程序   页面

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!