First of all, the function Update will never get past
If Session("strID") = ""
if Session("strID") is set to some value because this line asks if strID is NOT set...
You need to change that first "if" to:
If Session("strID") IsNot Nothing AndAlso IsNumeric(Session("strID")) Then
End If
This checks that strID exists in your session and that it is a number (or CInt function would throw an error)