PrestwoodBoards.com
-Collapse +Expand

VB.Net

Search VB.Net Group:

Advanced
-Collapse +Expand VB.Net Group Home
-Collapse +Expand Message Board
-Collapse +Expand Knowledge Base
-Collapse +Expand VB.Net To/From
To/FromCODEGuides
-Collapse +Expand VB.Net Study Test
PRESTWOODCERTIFIED
-Collapse +Expand VB.Net Store
PRESTWOODSTORE
-Collapse +Expand Members Only
Prestwood Tip Jar
Tip Jar
Finding something useful?

Add to the
Tip Jar!

Prestwood eMagazine

Subscribe now!
Enter your email:


   PrestwoodBoardsKBProgrammingVB.NetWebForms (ASP.Net)   
Go To Random Article
 
VB.Net WebForms (ASP.Net):
ASP.NET Cheat Sheet
By Bryan Valencia
7/19/2010
 
Take Away:

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



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>



KB Post Contributed By Prestwood staff member Bryan Valencia:
SomeYahoo
Email Approved! E CA USA

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


Comments

0 Comments.
Would you like to comment? Reply? Ask a question? Say thanks?
Add Comment



 KB Article #102188 Counter
95
Since 7/19/2010

Sponsored Ad
Brought to you by Prestwood IT Solutions
We hope you are enjoying our knowledge base! We welcome your participation in our open online community. As the caretakers, we pay our staff to moderate, edit, and contribute free content here in an effort to promote our software development company. Keep us in mind if you or your company needs help. Whether you need a single developer or a team, consider Prestwood. We are an American company that keeps jobs in America (no off shoring and no need for H-1B developers). Our hope is that you will put some or all of your development tasks in our hands. We specialize in hourly help (1 hour minimum), custom websites from $2k to $40k, business database applications from $5k to $60k, and enterprise application development starting from $20k. Talented Developer?
If you are a talented developer and would like to work with us, start by filling out our Register for Work form.
 
881 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join Prestwood now. It's free!