objectdatasource and delete not working

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,141
Latest member
BlissKeto
Top