ASP.Net: why is my button's click/command events not binding/firing in a repeater?

后端 未结 5 1726
北海茫月
北海茫月 2020-12-09 12:31

Here\'s the code from the ascx that has the repeater:


    

A sub-he

5条回答
  •  攒了一身酷
    2020-12-09 13:12

    You need to handle the ItemCommand event on your Repeater. Here's an example.

    Then, your button clicks will be handled by the ListOfEmails_ItemCommand method. I don't think wiring up the Click or Command event (of the button) in ItemDataBound will work.

提交回复
热议问题