使用页面加载事件中的asp.net c#代码从数据库下载文件 [英] Download a file from database using asp.net c# code in page load event
问题描述
亲爱的所有
我想在页面加载事件中使用asp.net c#代码从数据库下载文件。
我的表设计如下
表名:tblFiledownload
Id - int
数据 - varbinary(MAX)
FileName - varchar(50)
FileExtension - varchar(50)
能不能帮我解决这个问题。
谢谢
Sathik
< blockquote>这里有一些你可以参考的例子......如果你已经尝试过这种类型的东西并且没有得到结果。那么请用您的代码改进您的问题..
1. http://www.aspsnippets.com/Articles/Download-Files-from-GridView-using-LinkButton- Click-Event-in-ASPNet-using-C-and-VBNet.aspx [ ^ ]
2. http://www.venkateswarlu.co.in/dotnet/Download_File.aspx [ ^ ]
3. http://www.c-sharpcorner.com/uploadfile/afenster/how -to-download-a-file-in-Asp-Net / [ ^ ]
Dear All
I want to download a file from database using asp.net c# code in page load event.
My table design as below
Table Name: tblFiledownload
Id - int
Data - varbinary(MAX)
FileName - varchar(50)
FileExtension - varchar(50)
Could you please help me from this issue.
Thanks
Sathik
Here are some example you can refer... if you have tried this type of things and didn't get the result. then please improve your question with your code..
1. http://www.aspsnippets.com/Articles/Download-Files-from-GridView-using-LinkButton-Click-Event-in-ASPNet-using-C-and-VBNet.aspx[^]
2. http://www.venkateswarlu.co.in/dotnet/Download_File.aspx[^]
3.http://www.c-sharpcorner.com/uploadfile/afenster/how-to-download-a-file-in-Asp-Net/[^]
这篇关于使用页面加载事件中的asp.net c#代码从数据库下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!