Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Main Class of the Application
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Main Class of the Application
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01585436
Message ID:
01585436
Vues:
50
In the WinForms project I am converting to Web Forms there is a Main Class (MainClass.cs) which is the entry point of the application.
In this class there are number of "public static string SomeName" properties declared (at the top of the class). Then the application sets the values of these properties based on user selection(s).

In Web Forms there is a main page of the application but no main class (if I understand correctly). So I am thinking of creating a 'public sealed class' where to declare all these properties that WinForm MainClass declares.
Does it make sense? Or is there a better place?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform