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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top