DropDown List Of States (USA)

I have to throw one of these together every now and then. I would prefer not to make something like this database driven to not waste the resources on a database call. So I am putting it in this post. It contains all 50 states plus DC.

<asp:DropDownList ID="ddlState" runat="server">
    <asp:ListItem Text="" Value="" />
    <asp:ListItem Text="Alabama" Value="AL" />
    <asp:ListItem Text="Alaska" Value="AK" />
    <asp:ListItem Text="Arizona" Value="AZ" />
    <asp:ListItem Text="California" Value="CA" />
    <asp:ListItem Text="Colorado" Value="CO" />
    <asp:ListItem Text="Connecticut" Value="CT" />
    <asp:ListItem Text="Delaware" Value="DE" />
    <asp:ListItem Text="District of Columbia" Value="DC" />
    <asp:ListItem Text="Florida" Value="FL" />
    <asp:ListItem Text="Georgia" Value="GA" />
    <asp:ListItem Text="Hawaii" Value="HI" />
    <asp:ListItem Text="Idaho" Value="ID" />
    <asp:ListItem Text="Illinois" Value="IL" />
    <asp:ListItem Text="Indiana" Value="IN" />
    <asp:ListItem Text="Iowa" Value="IA" />
    <asp:ListItem Text="Kansas" Value="KS" />
    <asp:ListItem Text="Kentucky" Value="KY" />
    <asp:ListItem Text="Louisiana" Value="LA" />
    <asp:ListItem Text="Maine" Value="ME" />
    <asp:ListItem Text="Maryland" Value="MD" />
    <asp:ListItem Text="Massachusetts" Value="MA" />
    <asp:ListItem Text="Michigan" Value="MI" />
    <asp:ListItem Text="Minnesota" Value="MN" />
    <asp:ListItem Text="Mississippi" Value="MS" />
    <asp:ListItem Text="Missouri" Value="MO" />
    <asp:ListItem Text="Montana" Value="MT" />
    <asp:ListItem Text="Nebraska" Value="NE" />
    <asp:ListItem Text="New Hampshire" Value="NH" />
    <asp:ListItem Text="New Jersey" Value="NJ" />
    <asp:ListItem Text="New Mexico" Value="NM" />
    <asp:ListItem Text="New York" Value="NY" />
    <asp:ListItem Text="North Carolina" Value="NC" />
    <asp:ListItem Text="North Dakota" Value="ND" />
    <asp:ListItem Text="Ohio" Value="OH" />
    <asp:ListItem Text="Oklahoma" Value="OK" />
    <asp:ListItem Text="Oregon" Value="OR" />
    <asp:ListItem Text="Pennsylvania" Value="PA" />
    <asp:ListItem Text="Rhode Island" Value="RI" />
    <asp:ListItem Text="South Carolina" Value="SC" />
    <asp:ListItem Text="South Dakota" Value="SD" />
    <asp:ListItem Text="Tennessee" Value="TN" />
    <asp:ListItem Text="Texas" Value="TX" />
    <asp:ListItem Text="Utah" Value="UT" />
    <asp:ListItem Text="Vermont" Value="VT" />
    <asp:ListItem Text="Virginia" Value="VA" />
    <asp:ListItem Text="Washington" Value="WA" />
    <asp:ListItem Text="West Virginia" Value="WV" />
    <asp:ListItem Text="Wisconsin" Value="WI" />
    <asp:ListItem Text="Wyoming" Value="WY" />
</asp:DropDownList>
Advertisements

About SheldonS

Web developer for over 15 years mainly with Microsoft technologies from classic ASP to .NET 4. Husband, father, and aspiring amateur photographer.

Posted on March 26, 2012, in Bits and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: