How to set the default debug page in MVC 2?
In MVC 1 in VS2008, you could right click the Default.aspx page and set as default page, then hit debug and land on the home view (even though Default.aspx was something else). In MVC2, Default.aspx isn't there, so how do you set the default document to be the home index default view?
I know it is set this way by default, but if you are stupid like me, you already right clicked someth开发者_如何学JAVAing and incorrectly set it as the default page. :)
In the project properties, you can set it there. You shouldn't refer to the startup page as default.aspx; I believe it's empty in my project as the default. This is because of the URL rewriting feature.
精彩评论