My problem is that i want to get the error on the same place.
<td>
   <asp:TextBox> ...</asp:TextBox>
   <br />
      <asp:RegularExpressionValidator 
          ErrorMessage=""please enter 9 digis only" ...>
      </asp:RegularExpressionValidator>
      <asp:RequiredFieldValidator 
          ErrorMessage="this can't be blank" ...>
      </asp:RequiredFieldValidator>
</td>
i attached an image with the output, look and the red messages this is the validators. i want that the error messages will be at the same place since just one error can be on. thanks for helpers (and for who tries).

Add Display=Dynamic property to both the validators.
Further Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With