When I finished adding a new "item" on my FormView controlled ASP.NET web page, on PostBack in the DataBound event my FormView has no instantiated controls, why?
Posted on 2010-01-07
In my DataBound event handler for my FormView I try to access a couple of controls via the FindControl method. When I go into this page with an "item" selected, whereby populating the page, and then do an update..., on postback, switching to ReadOnly mode my controls are found.
But, if I go into the form first in InsertMode and then "save" my item, on postback, during the DataBound event handler the fvMyForm.Controls.Count = 0. Why is that?