Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Enum To Method
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Passing Enum To Method
Miscellaneous
Thread ID:
01455109
Message ID:
01455109
Views:
116
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
Next
Reply
Map
View

Click here to load this message in the networking platform