How to catch specific MS-SQL SQLExceptions in C# and VB.NET
To catch specific SQLExceptions using Microsoft.NET and Microsoft Sequel Server you can use the snippet below. You also need to look for the specific error numbers/codes you want to catch.…
All the Code Snippets and Samples you need
To catch specific SQLExceptions using Microsoft.NET and Microsoft Sequel Server you can use the snippet below. You also need to look for the specific error numbers/codes you want to catch.…
This is the IsSmallerThan generic extension method, this extension method which is part of the Fesslersoft.Extensions. It should only work with numeric values. Samples Sample C# public static bool IsSmallerThan<TOne,…
This is the IsLargerThan generic extension method, this extension method which is part of the Fesslersoft.Extensions. It should only work with numeric values. Samples Sample C# public static bool IsLargerThan<TOne,…
To match roman numerals using Regex you can use the following regex. The First Group should contain the Roman Numeral. ^(?i:(?=[MDCLXVI])((M{0,3})((C[DM])|(D?C{0,3}))?((X[LC])|(L?XX{0,2})|L)?((I[VX])|(V?(II{0,2}))|V)?))$
To round to X decimal places in C# and VB.NET you can use one of the following methods. Take a look at the output image to see the results. Sample…
To generate a random number in C you can use the following snippet. Sample C
To make a random number in PHP you can use the following snippet. Sample PHP
This snippet will give you the PercentOf method for C# and VB.NET. Sample C# Sample VB.NET
To make input numeric only in jQuery you can use the following snippet. Sample jQuery
If you need a IsLargerThan extension method you can use the follwing snippet. Sample C# >h2>Sample VB.NET>/h2>