添加db中的图像数量 [英] Add number of images from db

查看:67
本文介绍了添加db中的图像数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我初学到asp.net

i需要显示图片数量,但我需要在运行时动态创建图片标签

根据图片数

i需要带数据库连接的代码,整个代码连接数据库并显示来自db

的图像并根据图像的数量动态创建img标签

我初学到asp,所以不知道连接db,

i只试过这个

hi ,iam beginner to asp.net
i need to display number of images,but i need to create the image tag dynamically
at the run time according to the picture count
i need code with db connection ,a entire code to connect db and display images from db
and dynamically create the img tag according to the count of image
iam beginner to asp ,so dont know to connect db ,
i have tried this only



< img =alt =>


<img="" alt="">





我尝试了什么:





What I have tried:

<div>
<img="" alt="">
</div>

推荐答案

在图像控件中显示来自数据库(字节数组)的图像,而不使用ASP.Net中的Generic Handler - ASP.NET,C#.NET,VB.NET,JQuery,JavaScript,Gridview [ ^ ]


这篇关于添加db中的图像数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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