I have a strongly typed partial view named "Adress". This partial view contains 'input' fields associated to an Adress model class. I want to render it twice in the same view because the user must input the business adress and the delivery adress.
I have problem with client validation because of the ID of the 'input' rendered is not unique.
Also, I used the DataAnnotationModelBinder to get the model back on a httppost. I can't get the two adress object because of conflicting names in the Request.Forms.
Is there a way to set a kind of scope so the id of the 'input' for each partial view has a unique ID that can be recognized by the modelBinder?