Wednesday, July 13, 2011

ASP.NET MVC 3 bug (Html helpers)

If your model has ID parameter then Html helper will replace it with ID from QueryString.
It will take from here ==> "/MyControler/someaction/ID"
not from here ==> "model=>model.ID"

Solution: Write your html inputs yourself if you have ID parameter in Model.

No comments:

Post a Comment