Grupos de Google ya no admite nuevas publicaciones ni suscripciones de Usenet. El contenido anterior sigue siendo visible.

change default file extentions in FileUpload Control

Visto 1 vez
Saltar al primer mensaje no leído

Monica

no leída,
25 feb 2007, 10:49:0525/2/07
a
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

no leída,
25 feb 2007, 12:28:0525/2/07
a
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)

no leída,
25 feb 2007, 21:04:0025/2/07
a
> 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 mensajes nuevos