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 ... there any tools to tell me what events has been fired upon clicking a Form View's linkbutton? I have debugged that ODS's On Updating event is not invoked when I press the link button whose command name = "Update". NET's official class library between clicking the button and ODS's On Updating event, an exception must have been thrown, but it simply does not throw to the surface (believe me, I am already working under debug mode, every uncaptureded error must throw to surface).Such exception is probably aroused when ODS's do not match ODS Update Method's parameter.I first check to see if the List is in the Session object and, if it isn't, build it.I then set the Form View's Data Source to the List: Next, you must add these two lines of code to the page's Pre Render event so they execute after any activity you perform with the Form View elsewhere in the Page.None of these solutions worked, and I'm a little reluctant to use a workaround for something like data validation.
The page would simply postback normally without triggering any events. NET (using 2.0 SP1), since normal Buttons work just fine in other data controls. *sigh* --Rolf Update: If you set the Button's Use Submit Behavior property to FALSE, it works!
However, the Form View (and the rest of the Data Views) will work just as well with any collection of objects: Lists, Arrays, Array Lists, or whatever collection you want to make available to the user for display and update.
You won't get automatic generation of the Data View's templates and you'll have to write a little code, but from the user's point of view, everything works as if your Data View was tied to a Data Source.
But I have written a formview whose bind fields are optionally set to invisible too, but that formview works anyway.
Well I have no time to dig deep now, may be later I will inform you my finding.