I have a problem with mapping a hidden for remote validation.
I have this class:
[Remote("Check", "Route", AdditionalFields = "LanguageID", ErrorMessage = "Err")]
public string RouteToken { get; set; }
public string LanguageID { get; set; }
View:
@Html.Hidden("Route.LanguageID", Model.Route.LanguageID)
Gets rendered:
<input id="Route_LanguageID" name="Route.LanguageID" type="hidden" value="SV">
And it posts strange values with ".\" in name so it doesnt map to my original class:
What might be wrong here? No idea why it adds \ to name