Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put Sub functions?
Message
De
22/10/2003 17:57:33
 
 
À
22/10/2003 17:27:39
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00841315
Message ID:
00841336
Vues:
27
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform