在Repeater控件中设置Imagebutton的PostbackUrl属性 [英] Setting PostbackUrl Property of Imagebutton in Repeater Control
本文介绍了在Repeater控件中设置Imagebutton的PostbackUrl属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当ImageButton放在Repeater Cotrol中时如何设置ImageButton的PostBackurl属性????
How to set PostBackurl property of ImageButton when ImageButton is placed in Repeater Cotrol????
推荐答案
<asp:imagebutton id="Image1" imageurl="<%# "~/images/item/"+ Eval("ItemImage").ToString() %>" runat="server" postbackurl="<%# "~/Products_detail.aspx?itemSrNo=" + Eval("SrNo").ToString() %>" height="100px" width="100px" xmlns:asp="#unknown" />
这篇关于在Repeater控件中设置Imagebutton的PostbackUrl属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文