Skip to content

Drop Down List Entries

Mic keeey

Asked Dec 12, 2007, 10:56 PM EST1 answer
Share
LinkedInX
Hi,

I have used several drop down list boxes for my program.
So far I have managed to get the information from SQLServer. However, I have noticed that I keep getting one or two blank cells within my drop down lists.
Really I would like to get rid of these blank cells in order to make the drop down lists look neat.

Does anyone know why this is happening and whether there is a solution to this problem?

Thanking you in advance

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    I think you are using Asp.net Drop Down List.

    I suggest two option to you.

    1. Check the database vaules Which  you bound with the drop down List.I think any of the row value in SQL Server may be null or blank.
    2. Clear the drop down list before binding it.

    0