如何在datalist和更新面板中查找图像或更改图像的URL [英] how to find image inside datalist and update panel or change the url of image

查看:88
本文介绍了如何在datalist和更新面板中查找图像或更改图像的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已实施购物车现在我想显示缺货图像如果尊重的产品缺货



请帮我提出任何建议



提前感谢

i have implemented a shopping cart now i want to show an out of stock image if the respected product is out of stock

please help me to give any suggestion

thanks in advance

推荐答案

使用 DataList.ItemDataBound Event [ ^ ]。



获取产品状态并找到图像控件。如果状态为缺货,则更改 ImageId.ImageUrl
Use DataList.ItemDataBound Event[^].

Get the status of product and find the image control. If the status is "Out Of Stock", then change the ImageId.ImageUrl.


这篇关于如何在datalist和更新面板中查找图像或更改图像的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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