Click here to Skip to main content
       

ASP.NET

 
Questionftp uploaded files are empty [modified] PinmemberOmid Reza Aryafar19-Feb-13 2:43 
AnswerRe: ftp uploaded files are empty PinmemberRichard Deeming19-Feb-13 4:17 
GeneralRe: ftp uploaded files are empty PinmemberOmid Reza Aryafar19-Feb-13 4:34 
QuestionCan a Compare validator fire when either of two controls changes? Pinmemberdarookie9918-Feb-13 17:13 
AnswerRe: Can a Compare validator fire when either of two controls changes? PinmentorBrij18-Feb-13 19:09 
GeneralRe: Can a Compare validator fire when either of two controls changes? Pinmemberdarookie9919-Feb-13 13:51 
AnswerRe: Can a Compare validator fire when either of two controls changes? Pinmemberryanb3119-Feb-13 2:32 
AnswerRe: Can a Compare validator fire when either of two controls changes? PinmentorKeith Barrow19-Feb-13 4:07 
Yes, that is one of it's intended uses.
 
you need to set the ControlToValidate and ControlToCompare to the ID of the controls you want to compare. There is documentation on it here[^], the main things you need to set are the Type property (seeh here[^]) and the Operator property (see here[^]) as well as the various display stuffm such as the error message.
 
It is possible to have more complex validation of controls, but you need to hand-roll your own JavaScript and Code-behind.
 
[Edit]
Totally misread your question, sorry! I think it validates of either is changed, but you've sown the seed of doubt in my mind! It wouldn't make sense to validate on only one control...

Questionmultilanguage application PinmemberMember 870181318-Feb-13 7:39 
AnswerRe: multilanguage application PinmvpSandeep Mewara18-Feb-13 7:58 
GeneralRe: multilanguage application PinmemberMember 870181325-Feb-13 21:59 
GeneralRe: multilanguage application PinmvpSandeep Mewara25-Feb-13 23:24 
GeneralRe: multilanguage application PinmemberMember 870181326-Feb-13 1:44 
GeneralRe: multilanguage application PinmvpSandeep Mewara26-Feb-13 2:04 
GeneralRe: multilanguage application PinmemberMember 870181326-Feb-13 2:51 
GeneralRe: multilanguage application PinmemberMember 870181326-Feb-13 5:20 
AnswerRe: multilanguage application PinmvpSandeep Mewara26-Feb-13 5:38 
GeneralRe: multilanguage application PinmemberMember 870181327-Feb-13 4:38 
GeneralRe: multilanguage application PinmvpSandeep Mewara27-Feb-13 4:48 
GeneralRe: multilanguage application PinmemberMember 870181327-Feb-13 6:24 
GeneralRe: multilanguage application PinmvpSandeep Mewara27-Feb-13 6:28 
GeneralRe: multilanguage application PinmemberMember 870181327-Feb-13 16:10 
Questions/m has to send mail on button click event PinmemberMember 870181318-Feb-13 5:24 
AnswerRe: s/m has to send mail on button click event PinmvpSandeep Mewara18-Feb-13 5:57 
GeneralRe: s/m has to send mail on button click event PinmemberMember 870181318-Feb-13 6:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 31 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid