Solved

Filter Files of Type in HtmlInputFile

Posted on 2003-12-09
2
523 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

792 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