HighTechTalks DotNet Forums  

custom property enum with OR

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss custom property enum with OR in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
mr. App
 
Posts: n/a

Default custom property enum with OR - 06-04-2006 , 09:51 AM






Lets say that I have an enum:
[Flags]
public enum Fruit : int
{
None = 0,
Apply = 1,
Banana = 2
}

And I have a custom control which 1 of its properties is of type Fruit.
Is it possible to write something like the following in the aspx page:
<xx:myControl ID="Q" Runat=server Fruit=Banana|Apple>

Thanks



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.