We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Passing dynamic file name from a control to savefiles.ashx

Hi,

i was thinking to change the file name of the upload file based on the value entered by user in a text box and this is what i have tried but it's not working. Any idea how to change the file name?

<ej:UploadBox ID="upbRecogLetter" runat="server" AllowDragAndDrop="True" AsyncUpload="True" SaveUrl='<%# String.Format("saveFiles.ashx?TID={0}", txtTransID.Text.Trim)%>' RemoveUrl="removeFiles.ashx" MultipleFilesSelection="False"></ej:UploadBox>  

1 Reply

GG Gopi Govindasamy Syncfusion Team July 4, 2016 09:55 AM UTC

Hi Danferd,  
We have prepared a sample based on your requirement (“Passing dynamic file name from a control to savefiles.ashx”) for ejUploadbox control. The sample can be download from the following location.   
Please let us know whether the provided sample helps you to achieve your requirement. If not, then revert with more information we will assist you gladly.   
  
Regards,   
Gopi G   


Loader.
Live Chat Icon For mobile
Up arrow icon