Category - ASP.Net Validators
Results 1 - 5 of 43
12 Aug 2020 12 Aug 2020 0 Comments  1030 Views
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.
19 Dec 2019 19 Dec 2019 0 Comments  3097 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Page_ClientValidate function with JavaScript in ASP.Net.

Page_ClientValidate is an ASP.Net JavaScript function in-built which is used to perform ASP.Net validation explicitly i.e. invoking the ASP.Net Validators using JavaScript.

For example, in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function in ASP.Net.
14 Nov 2019 14 Nov 2019 0 Comments  2290 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Indian PAN Card Number validation using RegularExpressionValidator in ASP.Net.

The PAN Card Number entered in the TextBox will be validated on Button click using Regular Expression (Regex) and RegularExpressionValidator in ASP.Net.
04 Oct 2019 04 Oct 2019 0 Comments  11274 Views
Here Mudassar Ahmed Khan has explained with an example, how to check for duplicate values while inserting in GridView without SQL in ASP.Net using C# and VB.Net.

When the Add Button is clicked, the values of TextBoxes will be compared with the Row values of the GridView using ASP.Net CustomValidator and JavaScript and if the values are duplicate, error messages will be displayed.
01 Aug 2018 01 Aug 2018 0 Comments  33193 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Email Address using Regular Expression Validator in ASP.Net.
Results 1 - 5 of 43