13 Apr 2012

ASP.NET MVC 3 - Html.TextBoxFor not showing model value

I have a Controller that passes a Model to a View.
The Controller receives the Model in a postback and modifies one of the Model properties before passing it to the View.
The View uses the Html.HiddenFor HtmlHelper to include the modified Model property in a Form.

BUT!!!! The HTML shows that the View is not rendering the modified Model property value! Instead it's rendering whatever the property value was when it was POSTed.

In short: HtmlHelpers use the posted form collection values in preference to the explicitly set model value. To me that's counter-intuitive.

Anyway, the best workaround is to use hand-made <input /> tags instead of using the HtmlHelpers. Feels hacky but works.

This guy has more info.

12 Apr 2012

Free license for VMWare ESXi 5 / Hypervisor

I hate the 60 day license when the free unlimited license is available - when you know where it is!

Go here: https://www.vmware.com/tryvmware/index.php?p=free-esxi5&lp=default

Click the tab midway down the page called "License and Download". Create an account and they'll give you a license code.

Then go into vSphere Client Inventory, click on the host server that you wish to license, and select Configuration > Software > Licensed Features > Edit


Hope that helps someone.
If I helped you out today, you can buy me a beer below. Cheers!