如何点击图片 [英] How to Click on Image
本文介绍了如何点击图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我采用一个Datalist控件,我现在采用Image标签我想点击该图像并显示所有相关的细节有它,我怎么能这样做
我的代码如下:
Hi
I take one Datalist control in which i take on Image tag now i want to click on that image and display all the detail associated with it so how can i do it
My code is as follows:
<asp:DataList
ID="dlMen"
runat="server"
DataSourceID="srcMen"
RepeatColumns="4" Width="911px" >
<ItemTemplate>
<asp:Image
ID="ImgDisplay"
runat="server"
ImageUrl='<%#Eval("Product_ID","~/Display.aspx?Product_ID={0}") %>'
Width="175" />
<br /><br />
<asp:Label
ID="lblName"
runat="server"
Text='<%#Eval("Item_Name") %>' Font-Size="Smaller" Font-Bold="True" ></asp:Label>
<br />
<asp:Label
ID="lblPrice"
runat="server"
Text='<%#Eval("Price") %>'></asp:Label>
</ItemTemplate>
</asp:DataList>
推荐答案
在哪里展示?
提到在哪里显示
Where to display?
mention where to display
这篇关于如何点击图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文