我在登录到名为CustomerStart的页面后成功重定向用户。该查询字符串(URL)后看起来很好,像这样在多个视图中传递查询字符串的值MVC3
localhost:1234/CustomerStart?ssn=850406-0297
的SSN我写这
return RedirectToAction("Index", "CustomerStart", new {ssn = model.ssn});
做这个但是,当我点击一个按钮,它已经在这样的_layout被定义,
<li>@Html.ActionLink("CustomerStart","Index", "CustomerStart")</li>
我的查询字符串变空了。
我想要让我的客户在登录后或如果他们单击CustomerStart按钮时保持在同一个CustomerStart页面中。
我还想在不同的视图中发送我的客户,当他们点击上述提到的一个按钮。
这样,
<li>@Html.ActionLink("CustomerStart","Index", "CustomerStart")</li>
<li>@Html.ActionLink("Bill","Index", "Bill")</li>
所以,我要抓住从查询字符串总是值。但我不知道如何?
我是新的MVC3,我完全失去了。
任何帮助吗?请......( – Aqua