Asp objectdatasource onupdating

(3b) Then I copy and paste the exact coding from the problem aspx to ....this modified works, to my amazement !!! This aspx works......until not knowing when.....update command problem happen again.

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.

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 am not sure if invisible bind fields will lead to "ODS's do not match ODS Update Method's parameter"?None of these solutions worked, and I'm a little reluctant to use a workaround for something like data validation. I use an object Data Store to insert the records from a form.controls for the Update and Delete commands in a Form View (bound to an Object Data Source), and none of the Form View events would fire.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!

Leave a Reply