Hi Ahsa,
On the client side, you can access the path to the file as a string in the
"value" attribute of the "input type=file" field for uploading your file,
prior to submitting the form, as soon as they select it (using the
"onpropertychange" event handler for the "input type=file" element). It is a
string. Check the extension, and don't allow the user to submit the form
unless the form field is empty or the value has the correct file extension.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.