I have a asyncfile upload in my asp.net website. I have to show a file name inside the file upload. I have a edit functionailty which has to display the name of uploaded file insided the file upload. I just want to show the file name which i have it during page load, How can I assign the file name to the file upload in server side(c#) And how to change the backcolor of the file upload from server side.
<asp:AsyncFileUpload ID="AFU_Doc" ErrorBackColor="Red" OnUploadedComplete="btnDocUpload_Click"
runat="server" UploaderStyle="Traditional" ThrobberID="aajaxLoader" />
That is not possible. With
AsyncFileUpload
, theFileName
property is read-only.I assume this is to avoid hidden file uploads.