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

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

Code of Page_Load:

The front DropDownList.aspx page looks something like this:

The flow for the code behind page is as follows.

Download Source Files