Move the code from the page into a general DLL file - add a class called GeneralUtilities in your App_Code folder, and put the method in there as a static method. You can then access it from both pages.
"???"
Add a class to app_code.
Call it "GeneralUtilities.cs"
Include your method in this class as a static method:
using System;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
public static class GeneralUtilities
{
public static MyReturnValue Less(MyParameterType myParam)
{
...
}
}
You can then access it in both pages.