ASP.NET

What Are ASP.NET Master Pages

Master pages were introduced into the .NET Framework in version 2.0. They are web pages that can contain XHTML, server-side controls and user controls just like normal ASP.NET page (with .aspx extension), but with a Read More ›

ASP.NET · WinForms

Displaying Gravatars Using C#

Gravatar is a popular avatar service that links email addresses to the avatar. You do not need to register an account to be able to display gravatars on your site. All you need to do Read More ›

WinForms

Using the Phidgets LCD With Outlook

When I got my Phidgets StarterKit I decided to use the LCD that came with it with the Outlook Addin I developed for my previous post "Capturing Outlook 2007's New Mail and Reminder Events". The Read More ›

ASP.NET · WinForms · Mono 2.0

Get a Movie's Details From IMDb

A while back when I was developing MoviePlay (a movies database) I wanted to allow the user to get the movie's details from IMDb (The Internet Movie Database) instead of having him/her enter it manually Read More ›

ASP.NET

How to Get a Web Application's Directory Path in ASP.NET

I found this question asked a lot in forums so I thought I should answer it here. Getting the physical path of the website can be done using Request.PhysicalApplicationPath. The following code also lists the Read More ›

WinForms

Taking Thumbnails of a Website

I always wondered how web directories take thumbnail snapshots of my blog when I register with them. And yesterday I had some free time to find out how it could be done in C#. I Read More ›

Interesting Links

6 C# Blogs Worth Following

Here is a list of C# blogs worth checking out every now and then. Read More ›

Code Editors

Malicious Visual Studio Code Snippets

Although such threats are not common, but a developer can create a malicious Visual Studio code snippet in three different ways. The first is of course writing the malicious code straight into the snippet's code Read More ›

WinForms

Starting and Stopping the ScreenSaver

Starting and stopping the screensaver in C# can be done by calling the Windows API's PostMessage function, which posts a message to the Windows Message Queue asynchronously. Starting it is straight forward. But stopping it Read More ›

ASP.NET · WinForms

Dictionaries of HTML Codes

I wrote this class to help me do some screen scraping programs. It has two Dictionary objects. One contains the HTML codes and their text equivalents and the other contains the numeric HTML codes and Read More ›