(轉)DataList和Repeater裏的自定義button

 DataList和Repeater可以在templates裏包含很多Buttons, LinkButtons, ImageButtons。這些button被點時會引起postback,並激發ItemCommand事件。爲ItemCommand event創建一個event handler可以將服務器端代碼和點擊button關聯起來。在這個event handler裏首先檢查傳入的CommandN
相關文章
相關標籤/搜索