validation summary of Xval

Oct 26, 2009 at 10:52 AM
Edited Oct 27, 2009 at 6:22 AM

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 0

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>
.....//i will be dispaying my fieds+validation messages
  <%= Html.ClientSideValidation<Model>("Model1[" + i + "]")
        .UseValidationSummary("validationSummary" + i + "", "Please fix the following problems:")%>
<%}%>