URLヘルパー // link to a controller
Url.Action("Home");
// link to an action
Url.Action("Home", "Index");
// link to an action and send parameters
Url.Action("Edit", "Product", new RouteValueDictionary(new { id = p.Id }));
http://geekswithblogs.net/liammclennan/archive/2008/05/21/122298.aspx |
|