问题描述
我有我工作的一个Web应用程序,它工作正常,直到我的好奇心得到了我的好,我右键单击一个视图,并选择设为起始页选项。现在,每当我跑我的应用程序需要我到资源未找到错误页面。我在全局配置路由默认的寄存器路由集合这是以前工作的罚款。我注意到,网址现在读取:
I have an web application that I'm working on, it was working fine until my curiosity got the better of me and I right-clicked on a view and chose Set As Start Page option. Now, whenever I run my application it takes me to the Resource Not Found error page. I have the default register route set in my Global config route which was working fine before. I notice that the URL now reads:
http://localhost:1234/Views/User/Login.aspx
而不是
像从前那样。我不知道如何撤消此操作还是什么改变,我看着在我的web.config文件,但我不知道要寻找什么究竟,帮助AP preciated。
like it was before. I'm not sure how to undo this action or what was changed, I've looked in my web.config file but I'm not sure what to look for exactly, Help is appreciated.
推荐答案
您可以将其设置为打开为空白
在具体页
在项目属性选项。
you can set it to open as blank
in the Specific Page
option in the project properties.
这篇关于Visual Studio的ASP.Net MVC撤消设置为起始页面动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!