Here is an example using a class called MyClass in Page1.aspx
In you class file:
Public Class MyClass
Inherits System.Web.UI.Page
In your code behind page:
Public Class Page1
Inherits MyClass
So, you are replacing "Inherits System.Web.UI.Page" in your codebehind pages with the name of your class.
-sypher