Google Grup tidak lagi mendukung postingan atau langganan Usenet baru. Konten lama masih dapat dilihat.

change default file extentions in FileUpload Control

1 kali dilihat
Langsung ke pesan pertama yang belum dibaca

Monica

belum dibaca,
25 Feb 2007, 10.49.0525/02/07
kepada
Hi,

I want when I click on Browse button (FileUpload Control), I see just image
extensions not anything else.

How can I do this?

Thanks,
Monica

Alexey Smirnov

belum dibaca,
25 Feb 2007, 12.28.0525/02/07
kepada
On Feb 25, 4:49 pm, Monica <Mon...@discussions.microsoft.com> wrote:
> Hi,
>
> I want when I click on Browse button (FileUpload Control), I see just image
> extensions not anything else.

No, you cannot. You can only check if selected file has correct
extension either by using validation controls, or on the server-side.

Check this:

Listing 3. Using validation controls to restrict the types of files
uploaded to the server
Listing 4. Checking the file type on the server
http://msdn2.microsoft.com/en-us/library/aa479405.aspx

MasterGaurav (www.edujini-labs.com)

belum dibaca,
25 Feb 2007, 21.04.0025/02/07
kepada
> I want when I click on Browse button (FileUpload Control), I see just
> image
> extensions not anything else.

Not possible. The File-dialog is browser specific and not HTML specific.


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------


0 pesan baru