i have a form in a razor view in my aspnet mvc3 project. The form, submits to a controller action that receives a Custom object that one of the properties is of type HtmlString. That property comes with null from the form submit and if the property is of type string, the value is the one the user writes. How can i get this value when the property is of that type?
Thanks!
Edit: The form is a create post.. what i mean is that is like this:
<form action="@Url.Action("SaveNote", "Application")" method="post" class="note-form" style="display:none">
<fieldset>
<div class="input_item">
<div class="label">
<input type="hidden" name="urlRedirect" value="@Model.UrlRedirect" />
<select name="IsPrivate">
<option value="False">Public</option>
<option value="True">Private</option>
</select>
</div>
<div class="input">
<textarea name="Body" style="width:290px; height:90px"></textarea>
</div>
<button class="link" type="submit" name="addnote" value="0" >save</button>
</div>
</fieldset>
</form>
The Body is the HtmlString parameter that goes with null to the action.