Extender
มี object model ในฝั่ง client ซึ่งเราสามารถเรียกใช้เมทธอดบน object
ที่จะแสดง behavior ตามที่เราต้องการได้
เช่น เราสามารถเรียกใช้เมทธอด show เพื่อให้แสดง modalPopupExtender
ที่สำคัญ คือ เราจะต้องมี reference ไปยัง
object ตัวนี้
โดยใน AJAX library จะมีฟังก์ชั่น $find
ให้
ก่อนอื่นเราจะต้องกำหนด BehaviorID ไปยัง extender
ที่เราต้องการในฝั่ง server
และในฝั่ง client เราจะมี $find(“behaviorid”)
แล้วเราก็จะสามารถเรียกใช้เมทธอดใดๆก็ได้บน object
<o:p></o:p>
ฟอรัมที่เกี่ยวข้อง
Referencing CollapsiblePanelExtender in jscript
cascadingdropdown add client-side clear label how?<o:p></o:p>
Supa Sethasiripong [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.