Ticket Q419474
Visible to All Users

PostBackTrigger - A control with ID 'xxx' could not be found for the trigger in UpdatePanel 'yyy'.

created 13 years ago

I've followed the various articles explaining why I need to do what I need to do to get the control in an UpdatePanel to be registered as a PostBackTrigger. In my situation, I have an ASPxRoundPanel hosting another ASPxRoundPanel hosting a ASPxPageControl.

Approaches I've tried based on other articles (please see attached document and files):
- Add PostBackTrigger registration code to the Page_Load event.
- Add PostBackTrigger registration to the UpdatePanel load event.
- Hard wire the Control.UniqueID in the .aspx page.

All approaches still give me the same result.

I'm hoping you'll be able to tell me why in my situation with the 3 nested INamingContainer interfaces does the UpdatePanel refuse to see my control. I'm having to do this due to the fact that I require a FileUpload control which as you know isn't directly compatible in an UpdatePanel.

I appreciate any guidance.

Comments (2)

    please check WebForm2.aspx to find-out the error.

    Anthony (DevExpress Support) 12 years ago

      Hello Adnan,
      I have created the PostBackTrigger - A control with ID 'xxx' could not be found for the trigger in UpdatePanel 'yyy'. ticket on your behalf to discuss this issue.

      Answers

      created 13 years ago (modified 13 years ago)

      Hi Shannon,
      PostBack triggers should be registered directly with ScriptManager. Please use the following code:

      C#
      ScriptManager.GetCurrent(Page).RegisterPostBackControl(your btnUpload control)

      Please try this solution and let us know whether or not it helps.

        Comments (2)

          Thanks. It looks like this method worked.

          Anthony (DevExpress Support) 13 years ago

            Thank you for informing us that the problem has been resolved. We are glad to hear that our assistance was helpful.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.