http://localhost:31211/IWantSell/WantSell_SelectGame
从上边地址的页面跳转到下边的页面中间带有参数传递,这是我尝试的两种跳转代码:
<a> @Html.ActionLink(@item.GameName, "WantSell_SelectArea", "IWantSell", new { name = @item.GameName }, null)</a> *@ <a href="@Url.Action("WantSell_SelectArea", "IWantSell", new { name = @item.GameName })">@item.GameName</a>
问题便是:地址栏里边的地址变了,却没有跳转页面,需要刷新一下才会跳转到目标页面。。。
http://localhost:31211/IWantSell/WantSell_SelectArea?name=%E9%AD%94%E5%8A%9B%E4%B8%96%E7%BA%AA