Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put Sub functions?
Message
From
22/10/2003 17:57:33
 
 
To
22/10/2003 17:27:39
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00841315
Message ID:
00841336
Views:
26
This message has been marked as the solution to the initial question of the thread.
>I have a Sub function that two ASPX files are using. Is there a way to avoid copying the same function in both ASPX Codebehind file?

I think everything in .Net has to be in a class.

Create a WebCommon class with your method in it. Make the method static and you can call it from both aspx pages.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform