protected void ObjectDataSource1_ObjectCreating (object sender, ObjectDataSourceEventArgs e)
 {
     int[] listedPersons = ViewState["persons"] as int[];
     ListPersonDataSource ds = new ListPersonDataSource(listedPersons);
     ds.selectedOrgId = int.Parse(DropOrganizations.SelectedValue);
     e.ObjectInstance = ds;
 }
    protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
    {
        int[] listedPersons     = ViewState["persons"] as int[];
        ListPersonDataSource ds = new ListPersonDataSource(listedPersons);

        ds.selectedOrgId = int.Parse(DropOrganizations.SelectedValue);
        e.ObjectInstance = ds;
    }