hi there,
i ve got a problem with adding data into database , basically i m using my own typeDataset to insert into table when it run, it run properly but didnt store any value into database .. here is my code
Dim tdsReligion As New dsReligion
con1.Open()
daReligion.Fill(tdsReligion)
Dim rows As dsReligion.ReligionTypeRow = tdsReligion.ReligionType.NewReligionTypeRow()
rows.ReligionName = TextBox1.Text
'rows.ReligionID = 1
tdsReligion.ReligionType.AddReligionTypeRow(rows)
tdsReligion.AcceptChanges()
daReligion.Update(tdsReligion)
con1.Close()
please help
i ve got a problem with adding data into database , basically i m using my own typeDataset to insert into table when it run, it run properly but didnt store any value into database .. here is my code
Dim tdsReligion As New dsReligion
con1.Open()
daReligion.Fill(tdsReligion)
Dim rows As dsReligion.ReligionTypeRow = tdsReligion.ReligionType.NewReligionTypeRow()
rows.ReligionName = TextBox1.Text
'rows.ReligionID = 1
tdsReligion.ReligionType.AddReligionTypeRow(rows)
tdsReligion.AcceptChanges()
daReligion.Update(tdsReligion)
con1.Close()
please help