In WebCombo.NET, you can Use RequiredFieldValidator to ensure the webcombo cannot
be empty
This topic will show you how toUse RequiredFieldValidator to ensure the webcombo
cannot be empty
To use RequiredFieldValidator to ensure WebCombo cannot be empty
- Drag RequiredFieldValidator control to the page.
- Click the RequiredFieldValidator instance and press F4.
- Set ControlToValidate to WebCombo1.
- Set ErrorMessage to "Please select an item".
- Run the project.