The .click() only works in IE which is fine for Intranet sites, but not for general consumption. Does anyone have a workaround that's cross-browser compatible...or at least with Mozilla?
Hi deblendewim, Your idea sounds good but it is not possible to submit the form if the hidden file input click() method is called from a input button other than itself. I get a Javascript error "Access denied" when I try to submit the form. I tested this on
IE8.
jar240
Member
2 Points
1 Post
Re: How to change Text in FileUpload control
Nov 27, 2007 05:41 PM|LINK
The .click() only works in IE which is fine for Intranet sites, but not for general consumption. Does anyone have a workaround that's cross-browser compatible...or at least with Mozilla?
Thanks,
Chris
thiagossi
Member
4 Points
32 Posts
Re: How to change Text in FileUpload control
Jun 12, 2008 05:37 PM|LINK
Hi, I used your solution and it worked correctly in my computer because I was acessing the localhost server.
When I put the application in a FTP server and I am accessing this solution, I have to find the file that I will upload.
But when I choose my file, it is appear this message:
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Classes\CL_SAC\Associaclientemodulo.cs'.
In my computer, the application knows this path, but in the FTP server this is an invalid path.
Why can I to fix it ?
Thanks
superfly71
Member
4 Points
2 Posts
Re: How to change Text in FileUpload control
Mar 07, 2011 12:45 PM|LINK