[英]Cannot set selected style for LinkButton which inside a repeater control
[英]avoid Linkbutton control inside repeater to postpack
我有一個內部有LinkButton控件的轉發器,以及使用此linkbutton的OnItemCommand事件。
我希望此LinkButton不會導致頁面或轉發器上的回發。 我嘗試了一些解決方案,但沒有任何效果。
這有可能實現嗎?
您不能使用OnItemCommand事件而不引起回發。
如果要使用OnItemCommand,請使用updatepanel,或者可以使用javascript執行所需的操作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.