如何在asp.net中显示已上传的图像? [英] How to show already uploaded image in asp.net?

查看:94
本文介绍了如何在asp.net中显示已上传的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站有一个mysql数据库,我存储上传图像的路径。

因为我是asp.net的新手,我想知道哪个控件适合显示图像通过从数据库中检索路径。谢谢。

I have a mysql database for my website in which i store the path of the uploaded image.
As i am new to asp.net i would like to know which control is suitable for showing the image by retrieving the path from the database.Thank You.

推荐答案

您问知道哪个控件适合显示图像。

根据您的需要,您可以选择任何控件来显示图像。

参考Google推荐的这些文章,您可能会得到一些想法。

https://msdn.microsoft.com/en-in/library/ bb498210.aspx [ ^ ]

http://weblogs.asp.net/anasghanem/comparing-listview-with-gridview-datalist-and-repeater [ ^ ]

http://www.dotnet-tricks.com/Tutorial/aspnet/K0KJ111013-Difference-Between-Repeater-and-DataList-and-GridView.html</ a> [ ^ ]

http://www.beansoftware.com/ASP.NET-Tutorials/Repeater-DataList-ListView-GridView.aspx</ a> [ ^ ]



希望这可能对您有所帮助,您可以选择任何一个控件适合您的需要。
You asked "to know which control is suitable for showing the image ".
It is based on your needs, you may choose any controls to show images.
Refer these articles referred from Google, you may get some ideas.
https://msdn.microsoft.com/en-in/library/bb498210.aspx[^]
http://weblogs.asp.net/anasghanem/comparing-listview-with-gridview-datalist-and-repeater[^]
http://www.dotnet-tricks.com/Tutorial/aspnet/K0KJ111013-Difference-Between-Repeater-and-DataList-and-GridView.html</a>[^]
http://www.beansoftware.com/ASP.NET-Tutorials/Repeater-DataList-ListView-GridView.aspx</a>[^]

Hope this may helpful to you, and you may choose any control which one is suitable to your needs.


这篇关于如何在asp.net中显示已上传的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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