Going from Classic ASP to ASP.NET using VB.NET you can run into conversion problems. Some of these are:
Abs() – This function requires importing the namespace System.Math.
At the top of your code put this: Imports System.Math
A float is now a double.
Use it like Dim i as Double, etc.