From what I have read, a Compare validator only fires when the ControlToValidate changes (not the ControlToCompare). How can I get a validator that fires when either of two controls change?
Thanks for the answer. I ended up programing it with two custom validators. When I entered the one I would clear the message (if there was one) of the other.
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...
now i am developing a web application which is in english.if i want to make that application as global that is multilanguage supported application .how can i do that ...for ex
name textbox control
district dropdownlist control
city dropdownlist control
etc....
in hindi
naam(it must be in hindi letters)
like that...
in chinese language
....
in french language
how can i do that,except images text must be in corresponding languages...including tool tips...
Globalization and localization demystified in ASP.NET 2.0[^]
i followed the above link & downloaded source code..& executed it...but i am getting the following error
Error 12 The type or namespace name 'BasePage' could not be found (are you missing a using directive or an assembly reference?) C:\Users\user\Desktop\WebApplication3\WebApplication3\Default.aspx.cs 1233 WebApplication3
this error is occuring on default.aspx.cs page & the line is
public partial class _Default : BasePage
what should i do to overcome the above issue..
pls help me...
in App_Code folder BasePage.cs is there.i have downloaded everything.eventhen it is showing error.can u check it once pls....it is more helpful for me....