Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello ,
I am a asp .net coder . I am doing my project using c# and at the back end there is my-sql . I have created dataset from solution explorer . I have configured table adapter correctly for Customer creation . here the method get works correctly . than i have add query regarding insert , update , delete . At the asp .net web form first i have added a objectdatasource from the toolbox . configured it with datasettableadapters.customerstableAdapter . select the get method as select method and provide insert , update , delete method what i have created at the dataset table adpater . Than i have drag a details view and select the datasource as objectDataSource1 . enable insert , update ,
delete . Every thing works fine now on word . When I run the webpage the detailsView show the information of the customers . But when i go for edit , update , delete than it shows an error that object datasource could not find query delete and it's parameter . What may be the solution .
Posted
Comments
Prasad Bansi Vagal 2-Aug-10 12:27pm    
Reason for my vote of 5
good question as it migh be very important to make your code work at your working place.
Prasad Bansi Vagal 2-Aug-10 12:56pm    
Reason for my vote of 5
It is very essential, concentration is very important for this to be done.
koool.kabeer 2-Aug-10 12:58pm    
are you using stored procedure?...

this error means that even though you have writen the code correct, you have not created the stored proceduer in sql by using query analiser or management studio of Sql as you created the table in sql.

use the stored procedure string in code also, then it will work, according to me you are using parameters to pass query values in the database in your code as you might be using stored procedure value in insert query of your code, but as you have not created a stored procedure in sql it is giving an error of parameters not found.I hope stored procedures work for you, yes ofcourse it will.

prasad :-D
 
Share this answer
 
Comments
koool.kabeer 2-Aug-10 12:58pm    
is he using stored procedure..?
jamil_2342 2-Aug-10 13:18pm    
Reason for my vote of 4
The ans is important . But i am not using procedure way rather than query .
thing is that i am using query instead procedure .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900