hi,
i am trying to update row in gridview using store procedure. i am getting error "too many arguments" bcoz of reason, i dnt know how to bind grid view columns to store procedure parameters
in this case grid view has data from 3 different tables and i want to update in all 3 tables.
SP
ALTER PROCEDURE sp_upd
(@pk_contact_id int,@city varchar (30),@email varchar(30),@phone_no numeric)
AS
BEGIN
SET NOCOUNT ON;
UPDATE table1 SET city=@city where pkcontact_id=@pk_contact_id
UPDATE table2 SET email=@email where fk_contact_id=@pk_contact_id
UPDATE table2 SET phone_no=@phone_no where fk_contact_id=@pk_contact_id