M
Marc Miller
I've read other posts concerning unsuccessful deletes, but I can't find
anything that tells me what is wrong
with my code. After I delete() the row in the dataset, the dataset is empty
and I get 0 as the value for
my 'isDel' variable. What am I doing that I shouldn't be doing, or
vice-a-versa?
Thanks for any help,
Marc Miller
Dim sr As New StringReader(CStr(viewstate("dsbldgdata1")))
DsBldgData1.ReadXml(sr)
..DsBldgData1.Tables("Profile").Rows(0).Delete()
SqlConnection1.Open()
Dim iDel As Integer
Try
iDel = SqlDataAdapter1.Update(.DsBldgData1, "Profile")
Catch ex As Exception
errWindowShow(ex.message)
Finally
SqlConnection1.Close()
End Try
anything that tells me what is wrong
with my code. After I delete() the row in the dataset, the dataset is empty
and I get 0 as the value for
my 'isDel' variable. What am I doing that I shouldn't be doing, or
vice-a-versa?
Thanks for any help,
Marc Miller
Dim sr As New StringReader(CStr(viewstate("dsbldgdata1")))
DsBldgData1.ReadXml(sr)
..DsBldgData1.Tables("Profile").Rows(0).Delete()
SqlConnection1.Open()
Dim iDel As Integer
Try
iDel = SqlDataAdapter1.Update(.DsBldgData1, "Profile")
Catch ex As Exception
errWindowShow(ex.message)
Finally
SqlConnection1.Close()
End Try