Update Panel error: Control with the ID “xxx” could not be found in the UpdatePanel

后端 未结 5 1848
小蘑菇
小蘑菇 2021-01-13 12:05

I have a composite drop down calendar user control that consists of a textbox and and calendar image and a validation control. I expose a property called \"TextBox\" on the

5条回答
  •  有刺的猬
    2021-01-13 12:36

    You may want to try:

    ...
    trigger.ControlID = dtmDateFirstEntry.TextBox.ID
    trigger.EventName = "TextChanged"
    ...
    

    that is, use the ID instead of the ClientID for the ControlID and do not use the "On" prefix for the EventName.

提交回复
热议问题