.Net 2.0 Web UserControl EditorAttribute Problem

Discussion in 'ASP .Net Web Controls' started by HawkEye, Jun 21, 2006.

  1. HawkEye

    HawkEye Guest

    Hi.

    I'm trying to expose the DropDownList ListItemCollection property at design
    time on a Web user control, using the following code.


    <Category("Apearance"), Browsable(True), _

    EditorAttribute(GetType(System.Web.UI.Design.WebControls.ListItemsCollectionEditor), _
    GetType(UITypeEditor))> _
    Public ReadOnly Property ListItems() As ListItemCollection
    Get
    Return Me.ddlControl1.Items
    End Get
    End Property

    The problem is that the ListItems property is being displayed in
    properties; but the editor button is not displaying. As far as i can see this
    is virtualy identical to the example on MSDN.

    i'm using the following assemblies -

    Imports System.ComponentModel
    Imports System.ComponentModel.Design
    Imports System.Drawing.Design
    Imports System.Web.UI.Design.WebControls

    Please can anybody help.

    Thanks
    Ben
     
    HawkEye, Jun 21, 2006
    #1
    1. Advertisements

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. huobazi
    Replies:
    1
    Views:
    862
    David Waz...
    Jul 3, 2003
  2. Tim Pacl

    EditorAttribute for Style Editor

    Tim Pacl, Jul 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    717
    Victor Garcia Aprea [MVP]
    Jul 12, 2003
  3. Rajesh Tiwari

    Can we use a usercontrol inside a usercontrol

    Rajesh Tiwari, Aug 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    555
    Rajesh Tiwari
    Aug 12, 2003
  4. Replies:
    0
    Views:
    623
  5. Tim Pacl

    EditorAttribute for Style Editor

    Tim Pacl, Jul 11, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    251
    John Eikanger [MSFT]
    Jul 17, 2003
  6. jdn
    Replies:
    3
    Views:
    313
  7. Kan Grewal

    Web Usercontrol in a Web Usercontrol not displaying...

    Kan Grewal, Jul 6, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    246
    Kan Grewal
    Jul 7, 2004
  8. Mark van Bree

    Postback problem with usercontrol in usercontrol

    Mark van Bree, May 30, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    243
Loading...