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
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