Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Filter Files of Type in HtmlInputFile

Posted on 2003-12-09
2
Medium Priority
?
529 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 90 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 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