0
我有以下操作。我可以打这个如何在asp.net中传递友好网址中的查询字符串mvc
/篮/地址?addressId = 123
但是我不知道如何与
/篮/地址/ 123
public ActionResult Address(int addressId)
{
return RedirectToAction("Index");
}
我的路线
打routes.MapRoute(
"Default", // Route name
"{controller}.aspx/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);