I have a situation where one detailView displays data which depending on the data's value needs to have a different user control for edit and insert on one of the fields. My initial instinct set the Edit and Insert template to be a Panel and then add the control to the panel on a databind event.
This worked fine up to the point where i tried to save/update the information in in my control. By the time the ItemInserting event handler was being fired off, the page would have been reloaded and the control added by the databind was no longer present in the panel so i could not grab the data.
Can some one point me to the correct way of doing this? Is there an easy way to persist the data of the added control in the viewstate? or is there an easier solution that i am just not seeing here because i have been working on it all day?