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.

Getting File Name from the Uploaded Files

Thread ID:





121578 Jan 4,2016 02:08 AM Jan 5,2016 08:26 AM ASP.NET Web Forms 3
Tags: Uploadbox
Jenson Chew
Asked On January 4, 2016 02:08 AM

Dear Supports,

Currently, i'm using a javascript Upload box control as I'm enhancing a .NET 2.0 web system which is still using VB.NET. 

How am I going to loop through all the uploaded files to get their file names?

I need to save the file name and path into the database. 

While I noticed that ASP.NET Uploadbox control has easy way to achieve that, but I'm not aware of how Essential JS controls support that?



Jenson Chew
Replied On January 4, 2016 08:18 PM

Anyone can provide their experiences and expertise in using Javascript uploadbox (not the ejupload control), the native Javascript in the .aspx file, with the vb or c#.net code behind aspx.vb/aspx.cs?

Can't seem to be able to find a better way to run through the multiple files upload and get a variable value from code behind, and save it into database. 

Thanks in advance. 

Jenson Chew
Replied On January 4, 2016 08:59 PM

Ok, managed to solve it using Session Variable by implementing IReadOnlySessionState at the relevant .ashx code file. Then the Session variable from .aspx.vb/.aspx.cs could be read from there. 

Arun Palaniyandi [Syncfusion]
Replied On January 5, 2016 08:26 AM

Hi Jenson,

Thanks for the update.

Please find the alternate solution for your query in the Forum 110743.

Please contact us in future if you have any queries.

Arun P


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.