Again, formview is trying to pass these parameters So given that, I have defined the following even handler for a simple form view: (not sure if this is the way to proceed given the above, but...) protected void Form View1_Item Updating(object sender, Form View Update Event Args e) My questions are as follows: 1) Is this the right approach?
2) Is so, when I cancel the edit (because I did the update myself), and change mode, the Form View returns to read only mode as inteneded (good so far).
Additionally, there are some fields, such as Last Updated By, Last Updated Date that need to be seen, but not edited.
The stored procedure on the backend takes care of this, and these are not parameters for the Update method.
However, when I hit F5 (refresh), the Item Updating method is called again, and updates the database.
I am using a Form View to update an existing SQL Server record.
Since the IDLabel1 resides in the edit template of the Form View, it's not being recognized as a possible value to be assigned to the @ID parameter.
Execute Non Query() End Sub I seem to be hitting a snag here.
Such exception is probably aroused when ODS's do not match ODS Update Method's parameter.
When I finally resort to set the Update Method's parameter manually, everything works!