Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
i need add button command that means now i like to add one item in database running time

 Private Sub addbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addbtn.Click

[ wt code i write here.....] 


End Sub
Posted
Updated 2-Feb-12 19:40pm
v2
Comments
Rajesh Anuhya 3-Feb-12 1:40am    
Edited: Code Tags added.
--RA
Rajesh Anuhya 3-Feb-12 1:41am    
Are you Joking....Right???
--RA
Rajeev Jayaram 3-Feb-12 1:43am    
Your question is not clear and incomplete.

1 solution

You should look into ADO.Net[^] (MSDN). Basically the workflow is you create a connection to the database, you create a command which holds your sql statement and any parameters, and the you call the commands ExecuteNonQuery method
 
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