I have an MVC2 app which has a user control comprising of a dropdown (html.dropdownfor). Its in the master page of the app.
If you click the dropdown it does a GET to select a customer details view
<% using (Html.BeginForm("CustDetails", "Cust", FormMethod.Get))
<%= Html.DropDownList("id", Model.CustList)%>
If you select a customer from the dropdown and click go the customer details form is submitted.
This works fine as the query string is /Cust/CustDetails?id=18
And it populated the customer details view.
Now if I edit the customer details view this also works fine as the URL is this
However if I now click on the dropdown user control above and click go the URL is now like this
This only happens when I pass TempData to the view like this from the edit controller.
TempData["CustomerLevel"] = "Your level has been accepted.";
Is there anything with TempData I need to be aware of?