IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
VB.Net
Search VB.Net Group:

Advanced
-Collapse +Expand VB.Net To/From
To/FromCODEGuides
-Collapse +Expand VB.Net Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingVB.NetWebForms (AS...   Print This     
 
VB.Net WebForms (ASP.Net):
ASP.NET Cheat Sheet
 
Posted 11 years ago on 7/19/2010
Take Away:

Here's some copy-and-paste code that I use weekly.  Bookmark it and save yourself hours!

KB102188

ASP.NET Dropdown: ALL US STATES

<asp:DropDownList id="State" runat="server">

    <asp:ListItem Value="AL">Alabamaasp:ListItem>

    <asp:ListItem Value="AK">Alaskaasp:ListItem>

    <asp:ListItem Value="AZ">Arizonaasp:ListItem>

    <asp:ListItem Value="AR">Arkansasasp:ListItem>

    <asp:ListItem Value="CA">Californiaasp:ListItem>

    <asp:ListItem Value="CO">Coloradoasp:ListItem>

    <asp:ListItem Value="CT">Connecticutasp:ListItem>

    <asp:ListItem Value="DC">District of Columbiaasp:ListItem>

    <asp:ListItem Value="DE">Delawareasp:ListItem>

    <asp:ListItem Value="FL">Floridaasp:ListItem>

    <asp:ListItem Value="GA">Georgiaasp:ListItem>

    <asp:ListItem Value="HI">Hawaiiasp:ListItem>

    <asp:ListItem Value="ID">Idahoasp:ListItem>

    <asp:ListItem Value="IL">Illinoisasp:ListItem>

    <asp:ListItem Value="IN">Indianaasp:ListItem>

    <asp:ListItem Value="IA">Iowaasp:ListItem>

    <asp:ListItem Value="KS">Kansasasp:ListItem>

    <asp:ListItem Value="KY">Kentuckyasp:ListItem>

    <asp:ListItem Value="LA">Louisianaasp:ListItem>

    <asp:ListItem Value="ME">Maineasp:ListItem>

    <asp:ListItem Value="MD">Marylandasp:ListItem>

    <asp:ListItem Value="MA">Massachusettsasp:ListItem>

    <asp:ListItem Value="MI">Michiganasp:ListItem>

    <asp:ListItem Value="MN">Minnesotaasp:ListItem>

    <asp:ListItem Value="MS">Mississippiasp:ListItem>

    <asp:ListItem Value="MO">Missouriasp:ListItem>

    <asp:ListItem Value="MT">Montanaasp:ListItem>

    <asp:ListItem Value="NE">Nebraskaasp:ListItem>

    <asp:ListItem Value="NV">Nevadaasp:ListItem>

    <asp:ListItem Value="NH">New Hampshireasp:ListItem>

    <asp:ListItem Value="NJ">New Jerseyasp:ListItem>

    <asp:ListItem Value="NM">New Mexicoasp:ListItem>

    <asp:ListItem Value="NY">New Yorkasp:ListItem>

    <asp:ListItem Value="NC">North Carolinaasp:ListItem>

    <asp:ListItem Value="ND">North Dakotaasp:ListItem>

    <asp:ListItem Value="OH">Ohioasp:ListItem>

    <asp:ListItem Value="OK">Oklahomaasp:ListItem>

    <asp:ListItem Value="OR">Oregonasp:ListItem>

    <asp:ListItem Value="PA">Pennsylvaniaasp:ListItem>

    <asp:ListItem Value="RI">Rhode Islandasp:ListItem>

    <asp:ListItem Value="SC">South Carolinaasp:ListItem>

    <asp:ListItem Value="SD">South Dakotaasp:ListItem>

    <asp:ListItem Value="TN">Tennesseeasp:ListItem>

    <asp:ListItem Value="TX">Texasasp:ListItem>

    <asp:ListItem Value="UT">Utahasp:ListItem>

    <asp:ListItem Value="VT">Vermontasp:ListItem>

    <asp:ListItem Value="VA">Virginiaasp:ListItem>

    <asp:ListItem Value="WA">Washingtonasp:ListItem>

    <asp:ListItem Value="WV">West Virginiaasp:ListItem>

    <asp:ListItem Value="WI">Wisconsinasp:ListItem>

    <asp:ListItem Value="WY">Wyomingasp:ListItem>

asp:DropDownList>




Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1156A1
Enter key:
KB Post Contributed By Bryan Valencia:

Bryan Valencia is the author of millions of lines of code and writes for PrestwoodBoards and Visual Studio Journey on-line magazines.

Visit Profile

 KB Article #102188 Counter
6925
Since 7/19/2010
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]