Devel Media Center merupakan perusahaan yang bergerak dalam pengembangan multimedia. Kami mengembangkan teknologi berbasis multimedia menggunakan php, aspx, sharepoint, photoshop, dan lain sebagainya.
RSS
content top

append new list item in the dropdownlist

this guide will tell you how to append new list item to the existing listitems in the aspx dropdown list.

1. make sure you activate the AppendDataBoundItems at the dropdownlist control, set the value to be true. AppendDataBoundItems=”true”

2. insert the following code in the code behin:
ddlObject.Items.Insert(0, new ListItem(”Default text”, “Default value”));

change the ddlObject name to your dropdownlist object name.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar