这是在电子商务网站中绑定和存储图像的最佳方式 [英] Which is the best way to bind and store images in e-commerce website

查看:49
本文介绍了这是在电子商务网站中绑定和存储图像的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以建议将图像绑定到电子商务网站的最佳方式



我可以使用数据网格,中继器或其他一些控件?



存储图像数据库或应用程序文件夹是最佳选择。



请协助

在此先感谢

Could any one please suggest which is the best way to bind images to an e-commerce website

can i go with Data Grid, Repeater or some other controls ?

For storing the images database or application folder is the best option.

Please Assist
Thanks in advance

推荐答案

请参阅我对该问题的评论。在网站上存储和引用图像的最典型和合理的方法是为每个图像提供唯一的名称,并将它们存储在运行HTTP服务器的主机的文件系统中。然后,您可以将文件名存储在数据库中。但是始终可以将图像存储在数据库中;你会发现很多关于这个主题的代码示例和文章。



关于使用网格视图,转发器和类似内容的问题似乎无关紧要。你可以随意使用。



-SA
Please see my comment to the question. Most typical and reasonable way of storing and referencing images on a Web site is giving each image a unique name and storing them in the file system of your host running the HTTP server. You can then store just the file names, say, in a database. But storing images in a database is always possible; you will find a lot of code samples and articles on this topic.

The question about using grid view, repeater, and anything like that seems to be irrelevant. You can use whatever you want.

—SA


这篇关于这是在电子商务网站中绑定和存储图像的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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