Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Our project includes Filtertextboxextender for validating Numbers for various textboxes ,Characters with comma for various textboxes.Now when javascript is disabled then this wont work.
1. How to validate this using at Filtertextboxextender server side
2. We are adding regularexpressionvalidator also
3. Is there any alternatives for using filtertextboxextneder
Posted
Comments
Ainy Mughal 27-Nov-14 2:51am    
To the best of my understanding, when client side scripting is disabled, then server-side validation will still take place. The difference being that now it does a PostBack before returning with the results of the validation. That's why my second suggestion was to check the success/failure of validation in the code behind (Make use of Validate() & IsValid), and based on the IsValid property do different things.
sp_suresh 27-Nov-14 4:03am    
Thanks for reply...I am trying to make server side validations for this ....Please let me know whether we have to add regularexpression for that so that we can make server side validation ..or something else....Thanks once again....
Ainy Mughal 27-Nov-14 6:53am    
Go through these link.
http://www.aspsnippets.com/Articles/ASPNet-Custom-Validator-Server-Side-validation-using-OnServerValidate-event.aspx

http://www.codeproject.com/Tips/722385/Single-Server-Side-Validator-for-Multiple-Controls
sp_suresh 28-Nov-14 1:10am    
thanks Mughal ...Now i added Customvalidator

1 solution

To validate server side, which you should do anyway, write C# code to make sure the values are within the expected range.
 
Share this answer
 

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