![]() |
ASP.NET Custom Validation
I have two textboxes, which I want to validate, but the thing is that one of them must be filled, but not both. How can I add this validation to the validation summary? I looked at the methods but none seem to do this. I have added RequiredFieldValidator for other textboxes and their messages are showing up, but I need advise with this.
Thanks |
Re: ASP.NET Custom Validation
|
Re: ASP.NET Custom Validation
I think an easy logic is to concatenate the text of both and then check if its not empty
eg. Text1 is aaa and text2 nothing then catenetated will be aaa and vice versa |
Re: ASP.NET Custom Validation
Quote:
Hi Robocop, i saw your quote and even i too suggest that by using if - else condition you can make it out.i would to know on which technology you r working with. Thank you Jitesh Programmer Sharepoint Consulting |
| All times are GMT -5. The time now is 3:35 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC