ASP.NET Validation

Example code

TextBox: <asp:textbox id="TextBox1" runat="server" />
<asp:RequiredFieldValidator ControlToValidate="TextBox1" EnableClientScript="True"
       text="TextBox content is empty" ValidationGroup="Group1" runat="server" />
...
<osb:SuperButton ValidationGroup="Group1" isSubmit="true" CausesValidation="true" Text="Submit" ... />

Download Download this working example.

This textbox should not be empty when submit:

TextBox:  

Submit


"We have purchased the obout suite of controls and have used it in our web apps. It has worked great in many apps giving them a great look and feel and extremely versatile."

Kaydee Dwarak
Grocers Supply