I have an "Edit" action and an "Edit" view to allow users to update a certain entity in the database.
It's database type is "XML", and the DataContext (I'm using Linq-to-SQL) represents it as a property of type "XElement".
In my view, I render a text-area from the "ToString()" output of the propery like this:
<%= Html.TextArea("Text", Model.Text.ToString()) %>
This works fine when pulling the data from the object, but when I try to post the new data back, it comes back as blank.
I think this is because the auto-binder doesn't know how to deal with a property of type XElement.
Is there a way to fix this, or to somehow customize the behavior of the auto-binder so that it de-serializes the incoming data properly?