Sequence itemcommand itemupdating

04 Feb

One piece of additional information: certain bind fields in the formview's edit template are optionally set to invisible during the course of editing.

I am not sure if invisible bind fields will lead to "ODS's do not match ODS Update Method's parameter"?

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.

When I finally resort to set the Update Method's parameter manually, everything works!

This is a strong evidence of such a possible exception.

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 ...