i have 3 text box which must be in numeric, but i just want shown only one error message once either one of the text box was incorrect formating.
how can i archieve that?
gahhon 13 Junior Poster
Recommended Answers
Jump to PostI would use a ValidationSummary control to display the error message in one place. Then you configure the individual validation controls to suppress their error messages.
Jump to PostI have these two MS bookmarks that I refer to when dealing with asp.net validation. Lots if examples and e plantation on how to set the appropriate properties and values.
…
Jump to PostThe asp.net validation controls produce the javascript for client side validation. In addition, if you use the validation controls, the input will be checked server side as well, just in case the browser did not support javascript or is javascript was disabled/bypassed.
So if you do this with just regular …
Jump to PostHere you go, using asp.net validation controls and summary. The validation error is only shown in the summary and not next to the controls.
I tried to give you some hints, but see if this code helps you.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="TextBox 1 only …
All 15 Replies
JorgeM 958 Problem Solver Team Colleague Featured Poster
gahhon 13 Junior Poster
JorgeM 958 Problem Solver Team Colleague Featured Poster
ss125 18 Posting Whiz in Training
gahhon 13 Junior Poster
geniusvishal -1 ~Coder~
JorgeM 958 Problem Solver Team Colleague Featured Poster
gahhon 13 Junior Poster
geniusvishal -1 ~Coder~
JorgeM 958 Problem Solver Team Colleague Featured Poster
gahhon 13 Junior Poster
JorgeM 958 Problem Solver Team Colleague Featured Poster
gahhon 13 Junior Poster
JorgeM 958 Problem Solver Team Colleague Featured Poster
gahhon 13 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.