Restrict manual entry in file upload control's text part

I want to restrict manual entry in file upload control’s text part, user should only be able to click BROWSE button and can then select the file .

If any body knows it??

Thank in advance

Pravesh.

Subject: Restrict manual entry in file upload control’s text part

Hi - the fileupload control inherits all the javascript events from Input, so you can write some code on one of the events (onFocus() or onKeyDown(), for example) which could popup a warning message telling the user to click ‘browse.’

These events aren’t listed in the designer client when you click on the control, so you have to write them in the HTML attributes of the FileUpload, i.e. onKeyDown=“runSomeJavacsript()”

Subject: RE: Restrict manual entry in file upload control’s text part

Thanks buddy,

I did that using onFocus=window.focus(); and its working fine . I wrote it in the HTML attribute.

thanks again

Pravesh.