vb.net - Retaining Custom Validation Message OnChanged -


i using gridview customvalidator on different input types. each input has own customvalidator. problem running when customvalidator fires , message displays, dissapears if have validation error in different row. need able retain errors each customvalidator error thrown. adding custom css class each error , retained (see red outline around inputs).

the first image shows error dropdownlist on far right. checks values in other input types in same row. correct.

enter image description here

the second image shows error in unit field on different row. validation summary shows error message unit , not error message other invalid fields in previous row.

enter image description here

in end, continue seeing validation errors css error class active.

i have same validationgroup customvalidators. error messages showing in same spot. not want errors appear below inputs.

<asp:textbox id="gradient_strip_unit_tb" runat="server" autopostback="true" ontextchanged="gradient_strip_unit_onchanged" text='<%# eval("gradient_strip_unit")%>' cssclass="displaygrid"></asp:textbox><br />  <asp:customvalidator id="gradient_strip_unit_cv" onservervalidate="checkresistanceunit"controltovalidate="gradient_strip_unit_tb"  runat="server" enableclientscript="false" display="none" setfocusonerror="true" validationgroup="mainform" validateemptytext="true"> 

here validation summary appears @ bottom of page , holds error messages:

<asp:validationsummary id="footervalidationsummary" validationgroup="mainform" runat="server" displaymode="bulletlist" enableclientscript="true" showmessagebox="false" showsummary="true" backcolor="#ffddd5" bordercolor="red" borderstyle="solid" borderwidth="2" headertext="please correct following validation errors:" /> 

thanks


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -