Default to blank for drop down list using ASP.NET c#

I am populating a drop down list in ASP.NET using c#.  It populates fine.  I just want the default entry to be blank.  What is the easiest way to accomplish this?

Thanks!
LVL 2
michael1174Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mmarinovCommented:
Hello michael1174,

You muse insert a blank one item after the dropdown list is populated and make it selected

Regards,
Martin
Raju SrivatsavayeSoftware EngineerCommented:
dropdown1.Items.Insert(0, "");
Carl TawnSystems and Integration DeveloperCommented:
Are you binding your list to anything ? Whether you are or not all you need to do is add an empty item as the first entry in the list:

   <asp:DropDownList ID="blah" runat="server">
        <asp:ListItem Text="" Value="" />
   </asp:DropDownList>

The only caveat is if you're binding to the list. If you are binding then you need to add the "AppendBoundItems" attribute to the DropDownList.
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

mrichmonCommented:
dropdown1.Items.Insert(0, new ListItem("", ""));

Put this line right after the dropdown1.DataBind();

It will select by default as it is the top of the list

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
michael1174Author Commented:
thanks everyone! mrichmon's solution worked perfectly for me.

jcjansCommented:
@: mrichmon
Your solution helped me as well - Thx !!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.