Category - Regular Expressions
Results 1 - 5 of 37
04 Oct 2018 04 Oct 2018 0 Comments  1058 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Date of Birth (Age) Validation using Regular Expressions (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.
04 Oct 2018 04 Oct 2018 0 Comments  608 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  1789 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  1307 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  1635 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.
Results 1 - 5 of 37