Objectdatasource updating input parameters

25 Feb

Not sure how to deal with it in the Updating event, e.g.

protected void ods Set Accounts_Updating(object sender, Object Data Source Method Event Args e) I must be missing something obvious in the documentation.

Update Cust Add Zip(Customer ID, Customer Address One, Customer Zip) End Function "Object Data Source 'Object Data Source1' could not find a non-generic method 'Update Customer Address Zip' that has parameters: Customer ID, Customer Address One, Customer Address Two, Customer Zip, original_Customer ID" there's an additional parameter: original_Customer ID That is there in case you want to implement Optimistic Concurrency, to ensure that the Update you are performing on the database don't conflicts with someone else changes.

We'll discuss this property and its purpose in greater detail when we explore optimistic concurrency.

Hi I have a method with the following signature: public bool Update Set Accounts(int[] items) How do I pass a collection of selected values in a List Box to this Object Data Source Update Method?

You're right that you need to manually pass in the paramter through Object Data Source's Updating event Here is a simple example demonstrate pass parameter from List Box's selected items into my custom object's update method through object Datasource: =========custom class========= public class Data Access Object ============================ ===========aspx============== ============================== =========code behind========== public partial class dataaccess_Obj Array DS : System. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution.

I bring it up now, however, because our BLL's methods do not expect the original values and therefore it's important that we remove this property.

Leaving the Old Values Parameter Format String property set to anything other than the default () will cause an error when a data Web control attempts to invoke the Object Data Source's Update() or Delete() methods because the Object Data Source will attempt to pass in both the Update Parameters or Delete Parameters specified as well as original value parameters.

Just one a glitch when it comes to fetching grid with sorted columns.

Introduction Step 1: Adding a Method to Employees Table Adapter Step 2: Adding the Get Employees By Hired Date Month(month) Method to the Business Logic Layer Step 3: Displaying Employees Whose Hiring Anniversary Is This Month Summary As we saw in the previous tutorial, a number of options are available for declaratively passing parameter values to the Object Data Source's methods.