使用页面加载事件中的asp.net c#代码从数据库下载文件 [英] Download a file from database using asp.net c# code in page load event

查看:70
本文介绍了使用页面加载事件中的asp.net c#代码从数据库下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有



我想在页面加载事件中使用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-LinkBut​​ton- 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆