<asp:FileUpload ID= "FileUpload1 " ContentEditable= "false " runat= "server " Width= "350px " onchange= 'PicChange(); ' />
只需要设置:ContentEditable= "false " 既可。
另:禁止手动输入到可以用 onkeydown= "event.returnValue=false; " onpaste= "return false "
<asp:FileUpload ID= "FileUpload1 " ContentEditable= "false " runat= "server " Width= "350px " onchange= 'PicChange(); ' />
只需要设置:ContentEditable= "false " 既可。
另:禁止手动输入到可以用 onkeydown= "event.returnValue=false; " onpaste= "return false "