Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > .Net 2.0 Web UserControl EditorAttribute Problem

Reply
Thread Tools

.Net 2.0 Web UserControl EditorAttribute Problem

 
 
HawkEye
Guest
Posts: n/a
 
      06-20-2006
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.WebCo ntrols.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


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web usercontrol + delegates or specialised usercontrol base class info@record-play.com ASP .Net 0 06-23-2006 09:41 AM
Postback problem with usercontrol in usercontrol Mark van Bree ASP .Net Web Controls 1 05-30-2006 08:27 PM
Web Usercontrol in a Web Usercontrol not displaying... Kan Grewal ASP .Net Web Controls 2 07-07-2004 08:12 AM
EditorAttribute for Style Editor Tim Pacl ASP .Net Web Controls 2 07-17-2003 10:33 PM
EditorAttribute for Style Editor Tim Pacl ASP .Net 1 07-12-2003 12:50 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57