How can i convert this code to asp.net vb
Dim maxtrcode As New ADODB.Recordset
Dim bookedinv As New ADODB.Recordset
maxtrcode.Open "maxinvoicetemp", CurrentProject.Connection
bookedinv.Open "maxbooked", CurrentProject.Connection, adOpenStatic, adLockOptimistic
Dim saler As New ADODB.Recordset
saler.Open "salesmanID", CurrentProject.Connection
If bookedinv.EOF Then
j = 0
Else
j = bookedinv!bookedinv
End If