I inserted the error line code in below:
Sql = "Update details set Deptartment= '" & txtDept.Text & "', tenthMark= '" & txtten.Text & "', zthMark= '" & txttwel.Text & "', Maths= '" & txtmaths.Text & "', Physics= '" & txtphy.Text & "', Chemistry= '" & txtche.Text & "' where Name= '" & txtName.Text & "'"
But I got Error this:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Please any one help to me
Thank You,