简体   繁体   中英

Obtaining Data From Repeater asp.net

I am an amateur as far as asp.net is concerned. What I'm trying to do is that I have a repeater control in my page that is set to show data upon selection of an item in a radio button list.

Upto this point its all good, next what I have to do is: I want a book now button for each repeater item which I can do as well.

But the question is: after user clicks book now how do I know which repeater item user has clicked? And how do I get the h_id(unique id of the table that repeater shows data of) of that item so that I can do further operations.

您可以在转发器中有一个按钮或链接,其中一个Eval(“ ID”)作为其命令参数,然后在回发时使用该值-ala http://www.aspsnippets.com/Articles/ASPNet-Repeater-Get-Item- ItemIndex-CommandName-和CommandArgument-on-Click-Events.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM