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.
Unfortunately, activation email could not send to your email. Please try again.

Passing dynamic file name from a control to savefiles.ashx

Thread ID:





124774 Jun 29,2016 05:33 AM Jul 4,2016 05:55 AM ASP.NET Web Forms 1
Tags: Uploadbox
Danferd Lan
Asked On June 29, 2016 05:33 AM


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>  

Gopi Govindasamy [Syncfusion]
Replied On July 4, 2016 05:55 AM

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.   
Gopi G   


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.