Michel,
You have another option only available in VB.NET (not C#) is to create your subs in a Module. Then you can call the sub like you can in VFP without needing to place them in a class and instantiate or reference the class.
MySub()
>>I think everything in .Net has to be in a class.
>
>Ok
>
>>Create a WebCommon class with your method in it. Make the method static and you can call it from both aspx pages.
>
>I'm new to this. What would be the step in order to make this new class static.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi