How can I have a control on a ASP.NET form that browses for files as FileUpload control does, but instead of submmitting the whole file, it only submits the path from witch the file was found from (with the original file name)?
How can I have a control on a ASP.NET form that browses for files
Share
Here is a workaround I made by following the instructions of the following forum post: http://forums.asp.net/p/1189182/2040139.aspx#2040048
Of course, this only works if JavaScript is enabled. If the JavaScript is disabled, the form will submit the file, but you can still perserve the functionality of the site by adding the following code before the first time
txtFileNameis being use.