HTMLInputFile

  • Thread starter Thread starter Steve Caliendo
  • Start date Start date
S

Steve Caliendo

Hi,

How do I set the default extention(s) for this control? I only want certain
types of files to be displayed, like *.doc, *.xls

Thanks,

Steve
 
How do I set the default extention(s) for this control? I only want
certain
types of files to be displayed, like *.doc, *.xls

You don't. What you CAN do is use JavaScript validation on the client, to
check the value, parse out the file extension, and not allow the form to
post if the extension is not correct.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top