tags:

views:

36

answers:

0

Can i add validation Group for Validation Summary?

Here my intentsiion is to display the validation summary like this: if in case Model has two items.

i need to display summary liek this

validationsummary0
summary1
summary2
summary3

All my controls set 1

validationsummary1
summary1
summary2
summary3

All my controls set 1

but for me now what is happening is that... its displayign all the validation summary in

validationsummary0

i am not able to display the validation summary for control set 1 in validation summary1

am i doing something wrong? my code part is

     <%int i = 0; %>
        <% foreach (var item in Model)
           { %>
        <div id="<%="validationSummary" + i + "" %>">
            <%= Html.ValidationSummary("Please fix the following problems:") %>
        </div>
.....
  <%= Html.ClientSideValidation<RegisterParentModel>("RegisterParentModel[" + i + "]")
                                                                            .UseValidationSummary("validationSummary" + i + "", "Please fix the following problems:")%>
<%}%>