Category - Regular Expressions
Results 101 - 120 of 136
04 Oct 2018 04 Oct 2018 0 Comments  27489 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Date in dd/MM/yyyy format using Regular Expression (Regex) in JavaScript.

There will be two types of Validations:
1. Date format dd/MM/yyyy validation: The Date of Birth (DOB) will be first validated for dd/MM/yyyy format using Regular Expression (Regex).
2. 18+ Minimum Age validation: The difference between the age entered in the TextBox and the Current Date is minimum 18 years.
01 Aug 2018 01 Aug 2018 0 Comments  78470 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Email Address using Regular Expression Validator in ASP.Net.
06 Jul 2018 06 Jul 2018 0 Comments  13912 Views
Here Mudassar Ahmed Khan has explained with an example, why Request.Browser.IsMobileDevice property does not work in ASP.Net.

ASP.Net does have in-built mobile phone browser detection capabilities and you can check whether user is using a Mobile phone browser or Desktop browser using the Request.Browser.IsMobileDevice property.

But with time, new Operating Systems and Mobile devices are being launched, thus since the information for is not present the Mobile Devices are not being detected.
06 Jul 2018 06 Jul 2018 0 Comments  24714 Views
Here Mudassar Ahmed Khan has explained with an example, how to detect mobile phone browser (mobile device) in ASP.Net MVC Razor.

With the help of Regular Expressions (Regex), one can easily detect and find whether the User is using a Desktop browser or mobile phone browser (mobile device) in ASP.Net MVC Razor.
15 Jun 2018 15 Jun 2018 1 Comments  38717 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.

The RegularExpression Data Annotation will be used along with Regular Expression (Regex) for enforcing dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.
14 Jun 2018 14 Jun 2018 1 Comments  51496 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert Date in dd/MM/yyyy format in SQL Server Database Table using ASP.Net with C# and VB.Net.

This article will illustrate how to insert Date in dd/MM/yyyy format in Database Table using Stored Procedures and the SQL Server DATEFORMAT command in ASP.Net.
12 Jun 2018 12 Jun 2018 0 Comments  6515 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform simple Email validation using JavaScript.

The value of the Email TextBox will be validated with the help of Regular Expressions in JavaScript.
12 Jun 2018 12 Jun 2018 1 Comments  86678 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Date format validation (dd/MM/yyyy) using Regular Expression in C# and VB.Net.

The User will enter Date in TextBox and when the Button is clicked, the Date will be tested against the Regular Expression for dd/MM/yyyy format and if invalid, a Message Box will be displayed.
12 Jun 2018 12 Jun 2018 0 Comments  63764 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Email Validation using Regular Expression in C# and VB.Net.

The User will enter Email Address in TextBox and when the Button is clicked, the Email Address will be tested against the Regular Expression and if invalid, a Message Box will be displayed.
09 Jan 2018 09 Jan 2018 0 Comments  20179 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to accept/allow Alphanumeric characters i.e. Alphabets (Upper and Lower case) and Numbers (Digits) and Space in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
03 Jan 2018 03 Jan 2018 0 Comments  38970 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to accept/allow Alphanumeric characters i.e. Alphabets (Upper and Lower case) and Numbers (Digits) and Special Characters in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
03 Jan 2018 03 Jan 2018 0 Comments  29849 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression validator for Alphanumeric validation i.e. Alphabets (Upper and Lower case) and Numbers (Digits) in TextBox in ASP.Net.
03 Jan 2018 03 Jan 2018 1 Comments  38723 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to accept/allow only Alphanumeric characters i.e. Alphabets (Upper and Lower case) and Numbers (Digits) in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
02 Jan 2018 02 Jan 2018 0 Comments  63063 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to allow only Numbers (Digits) and Space character in JavaScript and jQuery.
02 Jan 2018 02 Jan 2018 1 Comments  80832 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to allow only Numbers (Digits) and Special characters in JavaScript and jQuery.
19 Apr 2017 19 Apr 2017 0 Comments  65588 Views
Here Mudassar Ahmed Khan has explained with an example, how to create HTML Fileupload element (<input type = “file” />) using Html Helper and Model in ASP.Net MVC Razor.

By default, there is no Html Helper method for creating HTML Fileupload element (<input type = “file” />) in ASP.Net MVC Razor and hence Html.TextBoxFor function is used and the type Attribute is set to value File.
18 Apr 2017 18 Apr 2017 0 Comments  64684 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Client Side validation of HTML Fileupload element (<input type = “file” />) using Data Annotations in Model class and jQuery in ASP.Net MVC Razor.

HTML Fileupload element validation will allow upload of only certain files by filtering them using their extensions. This filtering of files will be done using the RegularExpression Data Annotation attribute in Model class.
02 Dec 2016 02 Dec 2016 0 Comments  52281 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the RegularExpression Data Annotation in ASP.Net MVC Razor.
The RegularExpression Data Annotation can be applied to Model Properties and used for enforcing Regular Expression (Regex) validations in ASP.Net MVC Razor.
02 Dec 2016 17 Sep 2022 0 Comments  83342 Views
Here Mudassar Khan has explained with an example, how to perform Mobile Number (Cellphone Number) TextBox validation i.e. exact Ten Numbers (Digits) validation on Client Side using Data Annotation in ASP.Net MVC Razor.

The Mobile Phone Number (Cellphone Number) validation will be performed using Regular Expression (Regex).
02 Dec 2016 17 Sep 2022 1 Comments  72523 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Decimal TextBox validation i.e. Decimal Number with maximum up to two decimal places validation on Client Side using Data Annotation in ASP.Net MVC Razor.

The Decimal TextBox validation i.e. Decimal Number with maximum up to two decimal places validation will be performed using Regular Expression (Regex).
Results 101 - 120 of 136