This tutorial will show you how to bind DropDownList with date in ASP.NET 2.0 and C#.

First, you will need to import the System.Collections namespace.

Then create a method to determine the leap year

And a method for binding every month day

The front DropDownList.aspx page looks something like this:

The flow for the code behind page is as follows.

Download Source Files