在Repeater控件中设置Imagebutton的PostbackUrl属性 [英] Setting PostbackUrl Property of Imagebutton in Repeater Control

查看:60
本文介绍了在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屋!

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