I run into a scenario where controls in an EditForm loses their values when performing a postback, after recently cancelling an event.
For example:
1. Add new item (perform InitInsert), or edit existing item (perform Edit)
2. Make changes to control values
3. If adding, perform PerformInsert command, otherwise Update command
4. I have logic that would cancel the event (whether on ItemCommand or PerformInsert level) based on some values
5. Event cancelled, fire NeedDataSource in the background by default
6. On the EditForm, perform any postback (via cancel or attempt an insert/update again)
7. The control values within the EditForm lose their value
I thought if I cancelled on the ItemCommand level, the control values would persist, but this was not the case.
Any ideas on what I could do?