编写代码以从html中的数据库表中获取数据 [英] Writing code to get data from database table in html

查看:352
本文介绍了编写代码以从html中的数据库表中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如果你知道sitefinity CMS那么请试着帮我...我的应用程序要求是动态显示横幅图像,我决定在页面上给用户一个按钮浏览图像并将该图像存储在数据库表中...然后使用内容模板中的html检索该图像...但我不确定是否可以编写C#代码以从html中的db检索图像,我可以这样做吗...或者更好的想法???

谢谢

Hi,
If you know sitefinity CMS then please try to help me out... My application requirement is to display banner image dynamically, I decided to give a button on page for the user to browse image and store that image in database table... then retrieve that image using html in content template... But I am not sure that can I write C# code to retrieve image from db in html, can I do this... or any better Idea???
Thanks

推荐答案

以下链接可以帮到你。

http:// aspsnippets。 com / Articles / Display-Images-from-SQL-Server-Database-using-ASP.Net.aspx [ ^ ]

http://forums.asp.net/t/1438666 .aspx [ ^ ]
Following links will help you.
http://aspsnippets.com/Articles/Display-Images-from-SQL-Server-Database-using-ASP.Net.aspx[^]
http://forums.asp.net/t/1438666.aspx[^]


您需要将图像转换为二进制文件以存储在数据库中..或者只是将dbpath中的imagepath存储在文件夹中,之后使用通用处理程序从db中检索数据pz遵循

http://www.dotnetperls.com /?file = flower
You need to convert image into binary to store in database..or just store imagepath in db and image in a folder after that use an generic handler to retrive data from db plz follow
http://www.dotnetperls.com /?file=flower


这篇关于编写代码以从html中的数据库表中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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