如何在数据集幻灯片中显示图像?在asp.net中 [英] how to show image in dataset slideshow? in asp.net

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

问题描述

如何在数据集幻灯片中显示图像?在asp.net中

或datagridview

解决方案

要在数据驱动控件中显示图像,请添加img标记。如果你想要一个幻灯片,那么有大量的jquery插件可以做到这一点,你需要从其中一个发出代码来为你做。如果图像来自数据集(位于您的数据库中),您可能需要一个HTTP处理程序,它在URL上获取图像ID并返回字节,因此您可以为幻灯片显示提供的URL列表,以便显示

how to show image in Dataset slideshow? in asp.net
or datagridview

解决方案

To show an image in a data driven control, you put an img tag. If you want a slideshow, there''s a ton of jquery plugins to do this, you need to emit the code from one of those to do it for you. If the images come from a dataset ( are in your DB ), you will probably need a HTTP handler that takes an image id on the URL and returns the bytes, so you can provide the slideshow with a list of URLs to show, in turn.


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

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