【发布时间】:2013-04-07 01:00:22
【问题描述】:
public ActionResult RenderMyThing(IList<String> strings)
{
return View("RenderMyView");
}
如何传入字符串?
routes.MapRoute("MyRoute", "RenderMyThing.aspx", new { controller = "My", action = "RenderMyThing" });
有没有办法可以在这里传递字符串?
其次,ASP.NET MVC 怎么知道 action 是我的 action,而 controller 是我的控制器。就像我在示例中看到的那样,它确实有效,但它不只是一个没有类型的匿名对象吗?
【问题讨论】:
-
这应该是两个独立的问题。
标签: asp.net-mvc asp.net-mvc-routing