Custom WebControl, values list

Discussion in 'ASP .Net' started by =?Utf-8?B?Q3VydF9DIFtNVlBd?=, Sep 1, 2005.

  1. working on a Custom WebControl. I want to add a property, lets call it FOO
    and I want a custom list of possible values for the designer and for usage
    "BAR,BANG,GU" (you get the idea).

    I know how to add the property, and how to get it into the designer, but I
    dont know how to have it display a custom list in the designer of values.

    Thanks

    --
    Curt Christianson
    site: http://www.darkfalz.com
    blog: http://blog.darkfalz.com
     
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=, Sep 1, 2005
    #1
    1. Advertising

  2. If your list is static (not dynamic) then create an enumerator and make the
    property of type your enumerator. That should do the trick.

    --
    -Demetri


    "Curt_C [MVP]" wrote:

    > working on a Custom WebControl. I want to add a property, lets call it FOO
    > and I want a custom list of possible values for the designer and for usage
    > "BAR,BANG,GU" (you get the idea).
    >
    > I know how to add the property, and how to get it into the designer, but I
    > dont know how to have it display a custom list in the designer of values.
    >
    > Thanks
    >
    > --
    > Curt Christianson
    > site: http://www.darkfalz.com
    > blog: http://blog.darkfalz.com
    >
     
    =?Utf-8?B?RGVtZXRyaQ==?=, Sep 1, 2005
    #2
    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. Guest
    Replies:
    2
    Views:
    750
  2. Luis Ramírez.

    Can a webcontrol (webcontrol.dll) have a configuration file?

    Luis Ramírez., Jul 5, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    212
    Luis Ramírez
    Jul 6, 2004
  3. Kasabaarde Sumta

    WebControl inside of WebControl and attaching events

    Kasabaarde Sumta, Dec 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    206
    Kasabaarde Sumta
    Dec 13, 2004
  4. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    197
    Fabricio
    Sep 21, 2005
  5. Curt_C [MVP]

    Custom WebControl, custom property list

    Curt_C [MVP], Sep 1, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    189
    Curt_C [MVP]
    Sep 1, 2005
Loading...

Share This Page