Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6591575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:26:26+00:00 2026-05-25T17:26:26+00:00

This is something I would have thought is available everywhere. I need to do

  • 0

This is something I would have thought is available everywhere. I need to do a drop-down list of all US states. Is there a C# class object somewhere that already has it all setup?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:26:27+00:00Added an answer on May 25, 2026 at 5:26 pm

    A quick search gave me this:

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

    source: http://www.geekpedia.com/code55_Drop-down-list-of-US-states.html

    This should allow you to do what you need:

    List<SelectListItem> states = new List<SelectListItem>();
    states.Add(new SelectListItem { value="" selected="selected", text="Select A State"});
    states.Add(new SelectListItem { value="AL", text="Alabama"});
    states.Add(new SelectListItem { value="AK", text="Alaska"});
    states.Add(new SelectListItem { value="AZ", text="Arizona"});
    states.Add(new SelectListItem { value="AR", text="Arkansas"});
    states.Add(new SelectListItem { value="CA", text="California"});
    states.Add(new SelectListItem { value="CO", text="Colorado"});
    states.Add(new SelectListItem { value="CT", text="Connecticut"});
    states.Add(new SelectListItem { value="DE", text="Delaware"});
    states.Add(new SelectListItem { value="DC", text="District Of Columbia"});
    states.Add(new SelectListItem { value="FL", text="Florida"});
    states.Add(new SelectListItem { value="GA", text="Georgia"});
    states.Add(new SelectListItem { value="HI", text="Hawaii"});
    states.Add(new SelectListItem { value="ID", text="Idaho"});
    states.Add(new SelectListItem { value="IL", text="Illinois"});
    states.Add(new SelectListItem { value="IN", text="Indiana"});
    states.Add(new SelectListItem { value="IA", text="Iowa"});
    states.Add(new SelectListItem { value="KS", text="Kansas"});
    states.Add(new SelectListItem { value="KY", text="Kentucky"});
    states.Add(new SelectListItem { value="LA", text="Louisiana"});
    states.Add(new SelectListItem { value="ME", text="Maine"});
    states.Add(new SelectListItem { value="MD", text="Maryland"});
    states.Add(new SelectListItem { value="MA", text="Massachusetts"});
    states.Add(new SelectListItem { value="MI", text="Michigan"});
    states.Add(new SelectListItem { value="MN", text="Minnesota"});
    states.Add(new SelectListItem { value="MS", text="Mississippi"});
    states.Add(new SelectListItem { value="MO", text="Missouri"});
    states.Add(new SelectListItem { value="MT", text="Montana"});
    states.Add(new SelectListItem { value="NE", text="Nebraska"});
    states.Add(new SelectListItem { value="NV", text="Nevada"});
    states.Add(new SelectListItem { value="NH", text="New Hampshire"});
    states.Add(new SelectListItem { value="NJ", text="New Jersey"});
    states.Add(new SelectListItem { value="NM", text="New Mexico"});
    states.Add(new SelectListItem { value="NY", text="New York"});
    states.Add(new SelectListItem { value="NC", text="North Carolina"});
    states.Add(new SelectListItem { value="ND", text="North Dakota"});
    states.Add(new SelectListItem { value="OH", text="Ohio"});
    states.Add(new SelectListItem { value="OK", text="Oklahoma"});
    states.Add(new SelectListItem { value="OR", text="Oregon"});
    states.Add(new SelectListItem { value="PA", text="Pennsylvania"});
    states.Add(new SelectListItem { value="RI", text="Rhode Island"});
    states.Add(new SelectListItem { value="SC", text="South Carolina"});
    states.Add(new SelectListItem { value="SD", text="South Dakota"});
    states.Add(new SelectListItem { value="TN", text="Tennessee"});
    states.Add(new SelectListItem { value="TX", text="Texas"});
    states.Add(new SelectListItem { value="UT", text="Utah"});
    states.Add(new SelectListItem { value="VT", text="Vermont"});
    states.Add(new SelectListItem { value="VA", text="Virginia"});
    states.Add(new SelectListItem { value="WA", text="Washington"});
    states.Add(new SelectListItem { value="WV", text="West Virginia"});
    states.Add(new SelectListItem { value="WI", text="Wisconsin"});
    states.Add(new SelectListItem { value="WY", text="Wyoming"});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this Javascript data: [{id:123,type:test},{id:154,type:another}] How would you transform that into something so
What I need is something like this: /<[\w\d]+ ([\w\d]+\=[w\d])+\/>/ Something that would match several
This is something that I think would be very useful. Basically, I'd like there
Is there any reason something like this would not work? This is the logic
I would try something like this but it isn't allowed. function GetDynamicModulesProperties() { var
This is something that I solved using reflection, but would like to see how
How would I do this? I think this has something to do with editing
In PHP, to create a new object you would do something like this, $dog
I would like to do something like this: a rotating cube on a form.
I'm trying to do something I thought would be fairly easy (as I suspect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.