Use CompareValidator to compare TextBox with Label
-
I'm using CompareValidator to validate a TextBox control in FormView. I want to compare with a Label. I find however that when I select ControlToCompare, the Label isn't listed. The only controls to choose from are TextBoxes. And yes the Label does exist and is visible! Any ideas? Many Thanks Maj
-
I'm using CompareValidator to validate a TextBox control in FormView. I want to compare with a Label. I find however that when I select ControlToCompare, the Label isn't listed. The only controls to choose from are TextBoxes. And yes the Label does exist and is visible! Any ideas? Many Thanks Maj
Go into the source code and manually type in the "id" of the Label control.
"We make a living by what we get, we make a life by what we give." --Winston Churchill