objectdatasource and delete not working

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,

i have a gridview of customer objects connected to an objectdatasource1 on
my web page. My delete method in the Data Access Layer takes an int
customerId and my ObjectDataSource1 has <delete parm"s"> with the customerId
as well. However, when I try to delete a customer the ObjectDataSource
insists on passing the entire customer object instead of just the customerId.

I've specified the customerId in the DataKeyNames parm of the GridView and
I've tried removing/keeping that orginalParm={0} thing but it still does not
pass just the customerId.

any ideas?

thanks,
rodchar
 
Back
Top