如何在不使用数据库的情况下添加下拉列表值 [英] how to add the dropdownlist value without using database
问题描述
在运行模式下如下
Factuly Name Textbox1
教师部门Dropdownlist1
(会计部门)
(行政部门)
(销售部门)
(人力资源部)
在上面的Dropdownlist1 4部门是在那里。我希望再添加一个部门意味着我可以添加多个手动添加到数据库。
而且idont想要手动添加aspxpage,如下所示
Dropdownlist1.items.add(购买部门)
如何在运行模式下为dropdownlist增加价值。
i想在dropdownlist1中键入值。
我怎么能用asp.net#。
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#.
我可以建议你一个选项,你可以从一些xml文件或其他一些格式读取部门值列表,并从该列表中添加下拉列表。现在运行xml或其他格式的可用值,它将读取并应用于下拉列表。
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.
这篇关于如何在不使用数据库的情况下添加下拉列表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!