Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Enum To Method
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Passing Enum To Method
Divers
Thread ID:
01455109
Message ID:
01455109
Vues:
117
I created a Web Control. In it is this enum:
public enum PageMode
{
    New,
    Edit,
    View
}
From outside the control I'm trying to do:
crlRoles.SetPageMode(crlRoles.PageMode.Edit);
I'm getting a compile error "'PageMode': cannot reference a type through an expression; try 'crlRoles.PageMode' instead".

How do I do this in an ASP.Net app?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform