Quantcast
Viewing all articles
Browse latest Browse all 3527

FormView Validation and Events

Hello, I'm trying to use a form with validation controls. Validation is working

ex: 

 RoHSCompliancy:
            <asp:TextBox ID="RoHSCompliancyTextBox" runat="server" Text='<%# Bind("RoHSCompliancy") %>' />
             <asp:RequiredFieldValidator ID="RoHSCompliancyValidator" runat="server" ErrorMessage="This field is required" ControlToValidate="RoHSCompliancyTextBox" Display="Dynamic"></asp:RequiredFieldValidator>

BUT I want to handle whatever event is fired when the text is considered invalid. I've tried everything, including using the FormView events, such as OnCommand, but I'm guessing none of those events will ever fire if the text is invalid. Anyone can help me?


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>