Solved

Filter Files of Type in HtmlInputFile

Posted on 2003-12-09
2
527 Views
Last Modified: 2007-12-19
Is anyone know how to filtering the file type in web using C#? Let say if user select microsoft excel in a dropdownlist, when he clicked on the browse button, the files of type will automatically filter to files in *.xls. As I know the OpenFileDialog can use filter method, but this is only limited to window form. Pls advise on the filtering issue. TQ.
0
Comment
Question by:cheongkabo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
testn earned 30 total points
ID: 9903281
although it's the html standard, no one implements it yet.
http://www.cs.tut.fi/~jkorpela/forms/file.html#filter
0
 

Author Comment

by:cheongkabo
ID: 9909849
dear testn

The article you suggested is going to check the file type when send/submit button was clicked but the Files of Type in the dialog box is still showing *.*/All Files. My requirement is how to make the Files of Type in the dialog box to be filtered as *.xls   or *.doc or... instead of showing *.*. Would it possible to make it in the web using C#?? TQ.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question