Quantcast
Viewing all articles
Browse latest Browse all 4741

Using RequiredFieldValidator for DropDownList in ASP.Net

Here Mudassar Ahmed Khan has explained with an example, how to use RequiredFieldValidator for DropDownList in ASP.Net. RequiredFieldValidator is used to validate required inputs, for TextBoxes it is plug and play but for DropDownList an additional property InitialValue needs to be set in ASP.Net. In the InitialValue property, the value of the Default DropDownList Item needs to be set.

Viewing all articles
Browse latest Browse all 4741

Trending Articles