Intersoft WebCombo Documentation
How-to: Implement WebCombo and RequiredFieldValidator in Web User Control
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Validation How-to Topics > How-to: Implement WebCombo and RequiredFieldValidator in Web User Control

Glossary Item Box

In WebCombo, you can implement WebCombo and Required Validator in Web User Control.

This topic will show you how to perform the scenario above.

To implement WebCombo and Required Validator in Web User Control

  1. Create a new Web User Control and leave the name as it is.
  2. Drag WebCombo control from the toolbox to the web user control.
  3. Fill the WebCombo with unbound data.
  4. Drag a RequiredFieldValidator control from the toolbox to the right side of the WebCombo's instance.
  5. Set its ControlToValidate to WebCombo1.
  6. Create a new WebForm and named it as WebUserControlHost.aspx.
  7. Drag the WebUserControl1.ascx from the Solution Explorer to the WebForm page.
  8. Run the project.

See Also