我使用下面的代码进行页面路由。首先是工作正常,但第二条路线不起作用。总是抛出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" } });
}
答案 0 :(得分:0)
TransactionCompleted