I always forget exactly what I need to do to implement IPostBackDataHandler correctly, so I'm tracking the steps here for future reference.
- Implement the IPostBackDataHandler interface.
- Override OnPreRender call Page.RegisterRequiresPostBack(this);.
- Override Render and write the form fields you need posted back.
- In LoadPostData, grab the data you posted back. The postDataKey arg is the same as the ClientID and is generally not useful.