ASP.NET C#联系表单,带文件上传和保存数据库 [英] ASP.NET C# contact form with file upload and save database

查看:154
本文介绍了ASP.NET C#联系表单,带文件上传和保存数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在寻找带文件上传的ASP.NET C#表单示例并保存在数据库中。



我发现以下示例但文件上传和数据库功能保存缺失。



http://codersbarn.com/post/2008/11/30 /ASPNET-Contact-Form.aspx



任何示例链接?



-Thanks

Hi,

I am looking for ASP.NET C# form example with file upload and save in database.

I found following example but file upload and saving in database functionality missing.

http://codersbarn.com/post/2008/11/30/ASPNET-Contact-Form.aspx

Any example link ?

-Thanks

推荐答案

如果您知道如何编程,那么您只需要使用AJAX Control Toolkit中的FileUpload控件。然后使用您的Sql帮助程序类写入数据库或使用.Net中的SqlConnection和SqlCommand类写入数据库。
If you know how to program then all you need is to use the FileUpload control from the AJAX Control Toolkit. Then use either your Sql helper class to write to the db or use the SqlConnection and SqlCommand classes in .Net to write to the db.


请参阅此链接



联系我们页面带文件上载的ASP.NET [ ^ ]



问候..:)
Refer this link

Contact us page in ASP.NET with File Upload[^]

Regards..:)


这篇关于ASP.NET C#联系表单,带文件上传和保存数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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