Click here to Skip to main content
16,010,114 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In run mode as follows

Factuly Name Textbox1
Faculty Department Dropdownlist1
(Accounts Department)
(Admin Department)
(Sales Department)
(HR Department)


In the above Dropdownlist1 4 Department is there.suppose i want to add one more department means how can i add with out adding manuallly to database.

And also idont want to add in aspxpage manually like this as follows

Dropdownlist1.items.add("Purchase Department)

how to add value to dropdownlist in run mode.

i want to typethe value in dropdownlist1.

for that how can i asp.net usingc#.
Posted
Comments
Wendelius 13-Aug-15 23:36pm    
If you don't want the values to come from a database or some other data source and you don't want to add code to insert the items, where would the values for the new rows come from?

1 solution

I can suggest you one option, you can read list of department value from some xml file or from some other format and drop down list will be added from that list. Now run time what ever value available in xml or other format it will read that and apply to dropdown list.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900