Solved

Filter Files of Type in HtmlInputFile

Posted on 2003-12-09
2
525 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 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