Client
side validation is best option for input validation, but if Javascript of
browser is disable then client side validation will not work. In that case
server side validation is needed. We must use both type of validations.
In this
article I will explain how to validate asp.net controls e.g. TextBox, CheckBox,
RadioButton, DropDownList, CheckBoxList, RadioButtonList and ListBox through
code i.e. server sidevalidation
in Asp.net using both C# and VB language code.