Upload file to server from client computer using C# and VB.Net in ASP.Net

Last Reply 8 months ago By dharmendr

Posted 8 months ago

Hello,

Can someone help me to write the example code for me to upload the file to the server from the local computer?

For example: if on the website, if I click on the Browse command button, then it will open up the screen for me to select the file and click upload.

Please help.

thanks.

Posted 8 months ago Modified on 8 months ago

Hi phonghue,

Refer below article for saving binary data in database.

Save Files to SQL Server Database using FileUpload Control

Refer below article for saving file in server folder and path in database.

Upload and Display Images using Path stored in database in GridView in ASP.Net using C# and VB.Net