本文介绍了VB.Net中单选按钮的语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
朋友,我正在尝试将无线电信息放入数据库,但我没有得到它,向我显示错误
我写的代码是
Hi
Friends i am trying the radio information should go in data base but i am not getting it is showing me error
The code which i have writen is
Dim con As New SqlConnection
Dim cmd As New SqlCommand
con.ConnectionString = "Data Source=COMP-4\SQLEXPRESS;Initial Catalog=mesco;Integrated Security=True"
cmd.Connection = con
cmd.CommandText = "insert into donatetable(donateid,name,age,address,gender,moblieno,email,donationamt)values('"&textname.txt&"','"&txtage.txt&"','"&txtaddress.txt&"','"&RadioButton1.RadioButtonList.&"','"&rbfemale.Select&"','"&&"')"
End Sub
可以利用无线电达顿作为男性和女性为vb.Net的插入代码提供帮助吗?甚至我正在使用 select @@ identity 进行自动ID生成,即使这给了我错误信息,请帮助
这是我的SQL查询
Can any one help me with the insert code for vb.Net using radio dutton as male and female. and even i am using select @@identity for auto ID generation even this is giving me error plz help
This is my sql query
create table donatetable
(
name varchar(50),
donorid int,
gender varchar(5),
address varchar(50),
age int,
mobileno int,
email varchar(20),
donationamt int
)
请帮助我了解收音机的语法,它可以存储在数据库中
在此先感谢
Please help me out with the syntax of radio and it can store in the database
Thanks in advance
推荐答案
这篇关于VB.Net中单选按钮的语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!