Dim strSQL As String Dim DBConn As New SqlClient.SqlConnection("Data Source=ML0003135586;Integrated Security=SSPI;" & "Initial Catalog=TestSQL") Dim DBCmd As SqlClient.SqlCommand strSQL = "DELETE FROM tblCourses_13514 WHERE Course_Code = '" & data1.DataKeys.Item(e.RowIndex).Value & "'" DBConn.Open() DBCmd = New SqlClient.SqlCommand(strSQL, DBConn) DBCmd.ExecuteNonQuery() data1.EditIndex = -1 data1.DataBind() DBConn.Close()
strSQL = "DELETE FROM tblCourses_13514 WHERE Course_Code = '" & data1.DataKeys.Item(e.RowIndex).value &"'"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)