Click here to Skip to main content
15,896,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two windows application, one at the admin side and the other at the user side.

When I run the windows application at the user side it should make a web service call and through web service it should add a row into the database at the admin side.
Also the row that is to be added in the database should contain the details entered by the user.

Can somebody help me out with this because I am new to C# programming.Its very urgent..
Posted
Updated 24-Mar-11 8:48am
v5
Comments
Dalek Dave 23-Mar-11 12:41pm    
Edited for Grammar, Spelling and Readability.

This[^] should help in inserting the rows in the database (assuming it is SQL database).

Your webservice should expose a method that will take in the values to insert in form of a class object with relevant properties that will map to database columns. These values can be used as parameter for the command object and saved in the database.
 
Share this answer
 
Comments
Dalek Dave 23-Mar-11 12:41pm    
Good Call
If you're hitting a web service, there should be a method available for inserting new data. If there isn't, you have to add one (if you have the source code to the web service). All of the work of inserting a new row into the database should be handled by a stored procedure that is called from the web service method (passing the data to be inserted into the stored procedure.
 
Share this answer
 
Comments
Dalek Dave 23-Mar-11 12:42pm    
Good Advice.

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