Message
From
17/03/2010 12:00:47
Kevin Marois
Marois Consulting
Winchester
,
California
,
United States
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Passing Enum To Method
Miscellaneous
Thread ID:
01455109
Message ID:
01455109
Views:
118
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 the map of this thread
View the map of this thread starting from this message only
View
View all messages of this thread
View all messages of this thread starting from this message only