In ASP.NET MVC (default routing), I'd like to use a URL like this to return a View with a form to edit a customer:
/Customers/Edit/5
I need to make use of CustomerId=5, but I don't want to permit a customer to change it. Right now I make the id hidden using:
<%= Html.Hidden("CustomerId") %>
This accomplishes what I want, but I'm under the impression that hidden form variables are not secure and can be manipulated by the end user.
So, what's the best way to allow a customer to edit their information but not their ID?