Using an ASP.NET FileUpload control, I can upload files to a folder and insert their path into a SQL Server database table. Can someone please tell me how to do the same using Ajax Control Toolkit v 19.1 AjaxFileUpload control?
C# code which I am using in a button click event to insert record in relational database tables is as follows. I am using Visual Studio 2019 CE, ASP.NET Web Tools 2019 - 16.3.286.43615 and SQL Server 2017 Express (v14.0.2027).
I will be very thankful for your time and consideration.
Using an ASP.NET FileUpload control, I can upload files to a folder and insert their path into a SQL Server database table. Can someone please tell me how to do the same using Ajax Control Toolkit v 19.1 AjaxFileUpload control?
If you want to insert file path into database, you can try below code: In the UploadComplete event, you can get the path, name and extension.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
1 Post
How to insert record into a SQL Server table when uploading file using Ajax Control Toolkit AjaxF...
Nov 19, 2019 09:43 AM|Irfan Soofi|LINK
Using an ASP.NET
FileUpload
control, I can upload files to a folder and insert their path into a SQL Server database table. Can someone please tell me how to do the same using Ajax Control Toolkit v 19.1AjaxFileUpload
control?C# code which I am using in a button click event to insert record in relational database tables is as follows. I am using Visual Studio 2019 CE, ASP.NET Web Tools 2019 - 16.3.286.43615 and SQL Server 2017 Express (v14.0.2027).
I will be very thankful for your time and consideration.
Contributor
3370 Points
1409 Posts
Re: How to insert record into a SQL Server table when uploading file using Ajax Control Toolkit A...
Nov 20, 2019 10:22 AM|samwu|LINK
Hi Irfan Soofi,
If you want to insert file path into database, you can try below code: In the UploadComplete event, you can get the path, name and extension.
Best regards,
Sam