Remove or replace existing routes in RouteTable

前端 未结 1 1248
感情败类
感情败类 2021-02-13 20:38

I got a ASP.NET MVC 2.0 Preview 1 app and started to create some areas which contains their own routes.

I want to have a way to overwrite these routes in the main projec

1条回答
  •  甜味超标
    2021-02-13 21:10

    How do in this?

    RouteTable.Routes.Remove(RouteTable.Routes["PostIndex"]);
    

    0 讨论(0)
提交回复
热议问题