I have a custom type in your model like so:
[StringLength (1000, MinimumLength = 150, ErrorMessageResourceName = "fld_Description_val_MinLength_lbl", ErrorMessageResourceType = typeof (Resources.Service.Controllers.Firm))] [AllowHtml] [display (name = "fld_Description_lbl", ResourceType = typeof (Resources.Service.Controllers.Firm))] Public Multilingual Property & lt; String & gt; Description {{this.GetMultilanguageProperty return (the "Statement", string.Empty,); } Set {this.SetMultilanguageProperty ("description", value); }} does not work for some reason AllowHtml custom type (A potentially dangerous Request.Form value was detected from the client). How can I get it? Thank you any specific argument
AllowHtml is doing established RequestValidationEnabled = false on the metadata, it Is not containst. The most likely cause here name between your property and the value does not see) POST store this metadata as metadata (ValueProvider posted value does not match. You can disable verification for the entire request by putting [ValidateInput (false)] on your action.
Comments
Post a Comment