I want to add the "Add new" at a specific index, but I am not sure of the syntax. I have the following code:
protected void Page_Load(object sender, Eve
Which specific index? If you want 'Add New' to be first on the dropdownlist you can add it though the code like this:
If you want to add it at a different index, maybe the last then try:
ListItem lst = new ListItem ( "Add New" , "0" ); DropDownList1.Items.Insert( DropDownList1.Items.Count-1 ,lst);