custom property enum with OR

Discussion in 'ASP .Net Building Controls' started by mr. App, Jun 4, 2006.

  1. mr. App

    mr. App Guest

    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
     
    mr. App, Jun 4, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. -

    enum within an enum

    -, Jun 12, 2005, in forum: Java
    Replies:
    6
    Views:
    581
  2. Jerminia
    Replies:
    3
    Views:
    653
    Roedy Green
    Oct 7, 2005
  3. Ernst Murnleitner

    How to enum an enum?

    Ernst Murnleitner, Nov 12, 2003, in forum: C++
    Replies:
    5
    Views:
    494
    Rolf Magnus
    Nov 13, 2003
  4. mrhicks
    Replies:
    2
    Views:
    447
    Dave Thompson
    Jun 10, 2004
  5. Randy
    Replies:
    1
    Views:
    527
    David Harmon
    Jan 7, 2006
Loading...

Share This Page