It’s a pretty common need for web developers to get the plain text from HTML text. Also, there are cases where users paste text from MS Word. In this article I will post a few simple functions that help me manipulate text that contains HTML and MS Word tags.
There are cases where the design of an abstract class requires that some static properties should be changed by the child classes (using the new keyword) where as the static functions remained the same. While testing, I realized that the static functions that were declared in the abstract class used the values of the static […]
The .NET framework has the System.Drawing namespace which allows the developer to create and/or manipulate image files programmatically. A common and popular action that a developer might need is to create a thumbnail of an image. The framework has a built-in method for creating thumbnails, the Image.GetThumbnailImage method. As you can read the method checks […]
An often requirement in a CMS is the user to be able to backup the database of its CMS installation. If you are using MS Sql Server there is a simple command that creates a .bak file of your database. BACKUP DATABASE [mydb] TO DISK = N'<bak_file_path>'</bak_file_path>BACKUP DATABASE [mydb] TO DISK = N'<bak_file_path>'</bak_file_path> Restoring the […]
Handling dates has always been a hassle for a developer. Here we see how we can properly handle dates in .NET.
In this tutorial we explain step by step how we can use the AntLR parser with our .NET application.