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)?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- What is the best way to do a search in a large fil
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
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
txtFileName
is being use.