We have a complex data model that has a nested complex property, for example:
public class Person { string Name {get; set} Address Address {get; set;} public DateTime? Dob { get; set; } public bool? AuthToWork { get; set; }
... } public class Address { public string Street { get; set; } public string City { get; set; } public string State { get; set; } public string Zip { get; set; } public string Country { get; set; } }
I have a Wizard control in which I tried to get the content of the steps through the following:
ContentUrl(Url.Action("someAction", "myController", Model))
I have two issues:
- The model is not being deserialized properly, the complete properties are not serialized--only the type name. I might be missing something, please let me know what I'm missing.
- The Action activates the server-side validation, which is not what we wanted. How can I prevent server-side validation?
We'll greatly appreciate any suggestions or pointers.
Many thanks