vb net binding source绑定data grid view 怎么样保存数据
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
2个回答
展开全部
Dim conn As SqlDataSource
conn = New SqlDataSource
conn.ConnectionString = "SERVER=;DATABASE=tpb;UID=;PWD="
conn.InsertCommand = "insert into test(ship_date,customer,type,number,po,pn,ad,contact,phone,note,date_time) values('" & ship_date.Text & "','" & customer.Text & "','" & type.Text & "','" & number.Text & "','" & po.Text & "','" & pn.Text & "','" & ad.Text & "','" & contact.Text & "','" & phone.Text & "','" & note.Text & "','" & Now() & "')"
conn.Insert()
MsgBox("ok", MsgBoxStyle.SystemModal)
conn.Dispose()
conn = New SqlDataSource
conn.ConnectionString = "SERVER=;DATABASE=tpb;UID=;PWD="
conn.InsertCommand = "insert into test(ship_date,customer,type,number,po,pn,ad,contact,phone,note,date_time) values('" & ship_date.Text & "','" & customer.Text & "','" & type.Text & "','" & number.Text & "','" & po.Text & "','" & pn.Text & "','" & ad.Text & "','" & contact.Text & "','" & phone.Text & "','" & note.Text & "','" & Now() & "')"
conn.Insert()
MsgBox("ok", MsgBoxStyle.SystemModal)
conn.Dispose()
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询