I am successfully redirecting user after Login to a page called CustomerStart. After that query string (url) looks fine with the ssn like this
localhost:1234/CustomerStart?ssn=850406-0297
I am doing this by writing this
return RedirectToAction("Index", "CustomerStart", new {ssn = model.ssn});
But when I click a button which has been defined in the _layout like this,
<li>@Html.ActionLink("CustomerStart","Index", "CustomerStart")</li>
my query string gets empty.
I want to keep my customer to be in the same CustomerStart page both after login or if they click the CustomerStart button.
I also want to send my customer in different views when they click any of the button under the above mentioned one.
like this,
<li>@Html.ActionLink("CustomerStart","Index", "CustomerStart")</li>
<li>@Html.ActionLink("Bill","Index", "Bill")</li>
So, i need to grab the value from the query string always. But I dont know how?
I am new in MVC3 and I am totally lost.
try