Comparing Calendar Controls The Compare Validator example we showed in this chapter let’s the user input a rental date and a return date. The validator verified that the return date was greater than...


Comparing Calendar Controls


The Compare Validator example we showed in this chapter let’s the user input a rental date and a return date. The validator verified that the return date was greater than or equal to the rental date. In this programming challenge, you will use Calendar controls for the input, as shown in Figure 9-53. There’s one slight problem: The Compare Validator control does not recognize the Calendar control. You will have to find a way around this restriction. Two Compare Validator members may prove useful:


• The Validate method causes the Compare Validator to perform validation immediately.


• The IsValid property returns True if the Compare Validator has validated the two inputs and found them to be correct.


CompareValidator can compare TextBoxes, and you can copy a Calendar control’s SelecteDate property into a TextBox. If the TextBox controls were not visible, the user might think that the Calendar controls were being compared.

Nov 15, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here