RouteCollection第一次溃败wirking罚款,但第二次将抛出404错误

时间:2015-11-03 16:28:18

标签: asp.net

我使用下面的代码进行页面路由。首先是工作正常,但第二条路线不起作用。总是抛出404错误。

 void RegisterRoutes(RouteCollection routeCollection)
    {
        routeCollection.MapPageRoute("RibbetPay", "Offer/{PaymentID}/{UserName}/{PaymentTitle}", "~/Offer/UserCreateOffer.aspx");
        //routeCollection.MapPageRoute("Profile", "Offer/{UserName}", "~/Offer/UserPublicProfile.aspx");
        routeCollection.MapPageRoute("Route2", "Offer/{UserName}", "~/Offer/UserPublicProfile.aspx", false, null, null, new RouteValueDictionary { { "isProfile", "yes" } });
    }

1 个答案:

答案 0 :(得分:0)

TransactionCompleted