ASP.NET MVC Routing Question

前端 未结 6 2055
悲哀的现实
悲哀的现实 2021-02-02 17:08

I must be dense. After asking several questions on StackOverflow, I am still at a loss when it comes to grasping the new routing engine provided with ASP.NET MVC. I think I\'v

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-02 17:44

    i think your question is similar to mine. ASP.NET MVC Routing

    this is what robert harvey answered.

    routes.MapRoute( _
        "SearchRoute", _
        "{id}", _
        New With {.controller = "User", .action = "Profile", .id = ""} _
    

    )

提交回复
热议问题