Formview fired event itemupdating which
If you use a Button instead of a Link Button it will work as documented. An image button got as far as the item command but never got to the Object Data Source updating event.
However a link button siting right beside the image button with a command of "Update" just like the image button, did infact proceed to the ODS updating. Form view doesn't seem to support image buttons that fire commands, unless there is some magical setting I am missing.
Seems a little strange that the button type would have an impact such as this. I have used image buttons a lot in Grid Views and they work well there. In that case the framework can not locate these fields and the update (and insert) parameters are not filled automatically ...
I just replaced asp:table with normal html table tags and everything started working...
I wish the Form View would set this automatically then, but I suppose that's too much to ask...
Problem found: There was a Validator in the Form View, this Validator (along with its associated input Text Box) was ocassionaly set to Invisible.
But I have written a formview whose bind fields are optionally set to invisible too, but that formview works anyway.
They make it easier to build webpages that access, display, manipulate, and save data. You use these controls to configure access to data that you intend to use on a webpage.
Using these controls can provide development efficiency when you are building business applications that rely heavily on data. A data source can be a relational database, data stored inside of in-memory objects (such as a Data Set or an Entity Data Model), XML-based data, or data you retrieve via Microsoft Language-Integrated Query (LINQ).
Work around I am going to do: Programmatically fill in datasource's parameters and promatically invoke datasource's updating event. But I am so reluctant because with so many aspx I have written, I know ASP.
NET is smart enough to do it for me automatically !! Supplement information: Upon clicking Edit Item Template's update link button: Item Command event is triggered, then return and goes no further. This is my foresaid work around solution: programmatically fill in datasource's parameters, when apparently ASP. However, I am still appreciate if anyone can explain this problem.