But that's not best practice. As ASP Pages are not meant to be called like that.
It is a Partial Class. You should create a new Class say GeneralMethods.cs and in that keep all methods that you want to use in your Projects.
public static class GeneralMethods
{
public static bool ValidateEmail(string email)
{
//Code goes here.
}
}
To use
bool isValid = GeneralMethods.ValidateEmail("a@a.com")