关于转发器的使用 [英] about use of repeater

查看:79
本文介绍了关于转发器的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我点击任何图像或立即购买按钮时,它将在公共页面中显示与该产品相关的信息。如何使用转发器检索该图像?在asp.net



它应该自动从数据库中检索图像,id,名称,作者姓名和价格

when i click any image or buy now button,it will display information related to that product in a common page.How should i retrieve that using repeater? in asp.net

and it should automatically retrive image,id,name,author name and price from database

推荐答案

您将使用ItemCommand事件, https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater(v = vs.110).aspx [ ^ ]。单击按钮时会触发。从那里,您可以获得所需的详细信息。
You would use the ItemCommand event, https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater(v=vs.110).aspx[^]. That fires when a button is clicked. From there, you can get the details you need to do whatever you need to do.


这篇关于关于转发器的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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