![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Sep 2004
Posts: 42
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Nov 2007
Posts: 86
Rep Power: 1
![]() |
Re: ASP.NET Custom Validation
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Feb 2008
Posts: 11
Rep Power: 0
![]() |
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
__________________
Free Programming help http://www.itgalary.com Free Revenue Sharing http://blog.itgalary.com Online Site seeing http://www.itgalary.com/maps/ |
|
|
|
|
|
#4 | |
|
Newbie
Join Date: Mar 2008
Posts: 3
Rep Power: 0
![]() |
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 Last edited by dilipv; Mar 7th, 2008 at 12:35 AM. Reason: editing the reply |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning ASP.net | Samerron | ASP.NET | 7 | Aug 28th, 2007 3:45 AM |
| ASP.Net Tutorial | smita | ASP.NET | 0 | Mar 15th, 2007 7:43 AM |
| Domain Object Validation | hoffmandirt | Software Design and Algorithms | 5 | Apr 28th, 2006 6:39 PM |
| How to create office xp like menus and other custom controls | some1 | C++ | 5 | Nov 8th, 2005 2:28 PM |
| Need help with Form Validation script | jl403 | JavaScript and Client-Side Browser Scripting | 13 | Sep 22nd, 2005 4:46 PM |