IPostBackDataHandler methods never gets called RRS feed

  • Question

  • User-825949172 posted

    I have server control inheriting from WebControl and implementing IPostBackDataHandler

    In the CreateChildControls() I add several controls of type ListControl to the controls collection. I need to collect the state of those controls during post back in my business objects which are public properties of this server control. I am trying to collect state in the LoadPostData(), but for some reason I never call this method called.

    What could be the reason for this method not being called?

    Wednesday, July 1, 2009 2:28 AM


  • User863160722 posted

    LoadPostData is only called if the posted form contains a field with a name which matches the UniqueID of your control.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 3, 2009 12:30 PM