View Single Post
  #13 (permalink)  
Old December 1st, 2005, 06:39 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Oh, BTW, probably a *lot* easier is this:
<asp:DropDownList .....>
  <asp:ListItem Value="">Please select an color</asp:ListItem>
</asp:DropDownList>

Just insert a default item in the drop-down list that has a value of "". Then use a RequiredFieldValidator to force the user to make a new selection when editing an existing item that has a null value in the database.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: I Am The Owl by Dead Kennedys (Track 11 from the album: Plastic Surgery Disasters + In God We Trust) What's This?
Reply With Quote