Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put Sub functions?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00841315
Message ID:
00841355
Views:
23
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform