DropDownist

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a dropdown list. I attached a objectDataSource which is populating
this dropdown list. But I want the first item In text like " select the User
Nmae." and When I click on side of dropdown list it should show list of
Users which I got from Objectdatasource. How can I do that
 
Add the 'Get' method from your Object DataSource control as the datasource
for your ddl.
Then, assign the DataText and DataValue items, from the DataSource

Then, set the AppendDataBoundItems property of your ddl to 'True' and in the
Items property, add your top item (whatever wording you want)

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
 
Back
Top