to get the functionality of Val() - return a numeric value from a string until the first non-numeric character, you have to write your own function. Here internally i am using Binary algorithm to implement the logic. You can directly used this function in asp.
Function Val(ByVal s)
Dim i, sTemp, iTemp
iTemp = 0
For i = 0 To Len(s)
sTemp = Mid(s,1,i)
If IsNumeric(sTemp) Then
iTemp = Clng(sTemp)
Else
Val = iTemp
Exit Function
End If
Next
End Function
Thanks