如何使用Asp.net在dropdownlist中添加excel表 [英] how to add the sheets of excel in dropdownlist using Asp.net

查看:120
本文介绍了如何使用Asp.net在dropdownlist中添加excel表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Asp.net在下拉列表中添加excel的工作表名称?

i使用ajax的asynchronusfileuploader加载excel文件........

how to add the sheet name of excel in dropdownlist using Asp.net?
i am using asynchronusfileuploader of ajax to load excel file........

推荐答案

上传文件时,使用Microsoft Excel对象模型打开它,构建一个List<>工作表名称,然后将其发送回客户端,然后使用javascript / jQuery将项目添加到下拉列表。如果您需要更多,我们将不会为您工作,所以请分享您已经走了多远。
When the file is uploaded, use the Microsoft Excel Object Model to open it, build a List<> of sheet names and then send it back to the client and then add the items to the drop down list using javascript/jQuery. If you need more than this we will not do your work for you so please share how far you have gotten.


这篇关于如何使用Asp.net在dropdownlist中添加excel表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆