如何默认文件浏览控件只显示.txt文件 [英] how to default file browse control to only display .txt files

查看:73
本文介绍了如何默认文件浏览控件只显示.txt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发基于asp.net web的应用程序,我的要求是在用户单击文件浏览控件时默认只显示.txt文件。我怎么能实现这个?

i am working on a asp.net web based application and my requirement is to show only .txt files by default when user clicks on file browse control. how can i achieve this?

推荐答案

这是不可能的正常文件浏览器控件,你可能需要使用像uploadify一样的文件上传Jquery插件

查看此演示 [ ^ ]

查看以前的答案,了解如何在asp.net中使用此插件

jquery和javascript未在master中加载页面asp.net [ ^ ]

教程:

http://www.aspsnippets.com/Articles/Implement-Upl oadify-jQuery-plugin-in-ASPNet.aspx [ ^ ]
this is not possible with normal file browser control, you may need to use file upload Jquery plugin like uploadify
check this demo[^]
check this previous answer for how to use this plugin in asp.net
jquery and javascript not loading in master page asp.net[^]
Tutorial:
http://www.aspsnippets.com/Articles/Implement-Uploadify-jQuery-Plugin-in-ASPNet.aspx[^]


这篇关于如何默认文件浏览控件只显示.txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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