|
|
-
|
|
While inserting multiple rows into a database table, smartest approach is to use bulk copy mechanism. .NET framework has SqlBulkCopy class to copy the rows in bulk to a sql server database table. Following script will be useful in the scenario....
|
|
-
|
|
This script is use for filter records in dataset using LINQ ...
|
|
-
|
|
This function will convert time span difference of a time with current time into words and display it in English words. Suppose, if a post is 2 days old, it will return as "2 days ago". If it is 1 hours old, it will return as "2 hours ago"....
|
|
-
|
|
using this script we can serialize Deserialize data...
|
|
-
|
|
Often in reporting applications, its required to write data to excel files. By using Excel interops, we can create excel files with various charts,pivot tables etc. Below script can be used to write a dataset to excel file from specific location.
...
|
|
-
1 Liked
|
0 Production
|
5 Comments
|
|
We recently ran into this interesting problem, to verify whether the IP Address of the user is between the range of IP Addresses or not. Below script will return 1, If IP Address is between the range, otherwise it return 0;...
|
|
-
|
|
Regular expression for check all uppercase string...
|
|
-
|
|
updated version of CompareXml...
|
|