【发布时间】:2011-01-30 19:47:40
【问题描述】:
使用控制器中的以下代码,我可以通过以下网址将流派的值传递为“rock”:“http://localhost:2414/Store/Browse?genre=rock”
public string Browse(string genre)
{
string message = HttpUtility.HtmlEncode("Store.Browse, Genre = "
+ genre);
return message;
}
当 URL 为“http://localhost:2414/Store/Browse/rock”时,我想传递相同的流派值
我该怎么做?
【问题讨论】:
标签: asp.net-mvc