添加按钮单击命令 [英] add button click command
本文介绍了添加按钮单击命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要添加按钮命令,这意味着我现在想在数据库运行时间中添加一项
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
推荐答案
您应该查看 ^ ](MSDN).基本上,工作流程是创建与数据库的连接,创建包含sql语句和所有参数的命令,然后调用命令ExecuteNonQuery方法
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
这篇关于添加按钮单击命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文