0
大家好我是一個關於mvc3中自定義(routes.MapRoute)的問題。如何在routes.MapRoute(mvc3)中隱藏參數?
我已經定製我的(routes.MapRoute)代碼在這裏
routes.MapRoute(
"stock-detail1",
"used-cars-for-sale",
// "{action}", auto call method in controller
new {
controller = "Stock",
action = "Detail"
}
);
,這我的鏈接字符串sUrlDetail1 = Url.RouteUrl( 「股票detail1」,新{ABC = 「123」}); (abc/used-cars-for-sale /?abc = 123) 請幫我謝謝