在数据库列中插入多个文件上载文件作为超链接 [英] insert multiple file upload files in database column as a hyperlink

查看:58
本文介绍了在数据库列中插入多个文件上载文件作为超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

foreach (HttpPostedFile postedFile in fudoc.PostedFiles)
                   {

                            doc = Path.GetFileName(postedFile.FileName);

               postedFile.SaveAs(System.IO.Path.Combine(Server.MapPath("~/Document/"), doc));

                           docName += String.Format("{0}", doc);


                   }







//字符串插入查询。 .... //请帮帮我如何在数据库中的单个列中插入多个文件作为超链接。 // thanks




//string insert query..... //please help me out. how to insert multiple files in single column in database as a hyperlink. //thanks

推荐答案

将所有链接存储为以逗号分隔的列,而fetch则根据逗号分隔字符串。
Store all the link as comma separated in a column, while fetch break the string based on comma.


这篇关于在数据库列中插入多个文件上载文件作为超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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