MVC Auto完成查找文件和目录列表 [英] MVC Auto Complete to find list of files and directories

查看:90
本文介绍了MVC Auto完成查找文件和目录列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个文本框,我可以输入路径,例如:D:\ ...



我需要一个自动完成功能,当我输入时可以给我完整的清单

D:\,会显示D中所有文件的列表:\



请帮帮我



问候,



Rohini G

Hi,

I had 1 text box where I can enter path eg: D:\...

I need an autocomplete which can give me complete list when I type
D:\, will show me list of all files in D:\

Please help me

Regards,

Rohini G

推荐答案

获取列表来自目录的文件 [ ^ ]

探索文件夹及其子目录使用ASP.NET MVC的etories [ ^ ]



您可以使用此处和自动完成数据源中使用的服务器端逻辑进行ajax调用以获取基于驱动器的文件列表。

希望这会有所帮助。

谢谢
Get list of files fromdirectory[^]
Exploring a folder and its subdirectories using ASP.NET MVC[^]

You can use the server side logic used here and in the autocomplete datasource make an ajax call to get list of files based on the drive.
Hope this helps.
thanks


这篇关于MVC Auto完成查找文件和目录列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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