Click here to Skip to main content
15,889,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I am developing web application.

I want to use Client Side Validation.

I am using Ajax Control Toolkit.

I want to know how can I display a message when some invalid values are entered in a Text Box.

I am using FilteredTextBoxExtender to filter which values should not be entered.

But when a wrong value is entered how to flag it or show a message ?

Thanx
MK
Posted

1 solution

Put a JS in your page. Change the form tag to include onsubmit then return the result of a function that tests the vals.

<script type="javascript">
     function testForm()
     {
          ...
          return true;
     }
</script>

<form id="myform"  önsubmit="return testForm();" action="submit.aspx">
     ...
     ...
     ...
</form>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900