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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top