如何动态生成Asp.net中的n个Dropdown [英] How to generate n number of Dropdowns in Asp.net dynamically
本文介绍了如何动态生成Asp.net中的n个Dropdown的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要Web应用程序,我必须从Excel中读取列并在Dropdown中显示它们。只有挑战就是说,例如,Excel中有5列,即Col1,Col2,Col3,Col4和Col5
我必须生成5个下拉列表,其中包含5个值以上在运行时说明。
谢谢,
I have a requirement for Web Application where I have to Read Columns from Excel and Show them in Dropdown. Only Challenge in that is say for eg, There are 5 columns in Excel i.e Col1, Col2, Col3, Col4 and Col5
I have to generate 5 Dropdowns with 5 values stated above on Runtime.
Thanks,
推荐答案
请,阅读我对这个问题的评论。
看看这里:
DropDownList类 [ ^ ]
如何:以编程方式将控件添加到ASP.NET网页 [ ^ ]
如何:将DropDownList Web服务器控件添加到Web窗体页面 [ ^ ]
Please, read my comment to the question.
Have a look here:
DropDownList Class[^]
How to: Add Controls to an ASP.NET Web Page Programmatically[^]
How to: Add DropDownList Web Server Controls to a Web Forms Page[^]
这篇关于如何动态生成Asp.net中的n个Dropdown的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文