post-redirect-get
Post-Redirect-Get with ASP.NET
Typically you would do this by making an aspx web form that uses the querystring to signal which record to load/process. Let’s say you have a page that let’s you update some customer information: http://www.mysite.com/customer.aspx You would load the form using an id in the querystring: http://www.mysite.com/customer.aspx?CustomerId=42 In the codebehind you would have something like … Read more
Asp.net MVC ModelState.Clear
I think is a bug in MVC. I struggled with this issue for hours today. Given this: public ViewResult SomeAction(SomeModel model) { model.SomeString = “some value”; return View(model); } The view renders with the original model, ignoring the changes. So I thought, maybe it does not like me using the same model, so I tried … Read more