Firstly thanks so much for the speedy response and help.
Regarding pre-compiled I meant published.
Re 1. I tried adding the extension.cs file to the App_Code directory but then asp.net gives me the following error
The directory '/tariqayad/App_Code/' is not allowed because the application is precompiled.
Re 2&3, thanks so much for your tips, I will check them out.