fileupload + filter
-
on this control i need only doc and excel files to be seen. that is other files are filtered out.
-
on this control i need only doc and excel files to be seen. that is other files are filtered out.
I just answered this, didn't I ? The ASP.NET control is going to render an input type="file", so any attributes that work for that control, will work in the .NET one, they just get passed through.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I just answered this, didn't I ? The ASP.NET control is going to render an input type="file", so any attributes that work for that control, will work in the .NET one, they just get passed through.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
As CG told you can't add filter to the file upload control. You can check the file extension and content type before you save the file to the server. Is this enough for you ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions