Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ImageURLEditor and a UserControl

Thread Tools

ImageURLEditor and a UserControl

Posts: n/a
ASP.NET 2.0 Question.

I have created a USERControl for my site (System.Web.UI.UserControl). I
added two string public properties that I will use to change an image box's
image URL at run time. I want to make the properties show up at design
time in the property browser and also have the ablility to use the
ImageURLEditor that the Image Control uses. I added this attribute to the
[Editor(typeof(System.Web.UI.Design.ImageUrlEditor) , typeof(UITypeEditor))]

Even though the attribute is there I still do not get the custom editor (the
box that has the "..." in the property browser). What am I doing wrong? Is
this a limitation to UserControls?



[Editor(typeof(System.Web.UI.Design.ImageUrlEditor) , typeof(UITypeEditor))]
public string URLTopBorder
return urlTopBorder;
urlTopBorder = value;

Reply With Quote

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
ImageUrlEditor - why can't i find it? SilentCry ASP .Net 3 05-01-2009 02:24 PM
ImageURLEditor and a UserControl ME ASP .Net Building Controls 0 11-21-2005 08:41 PM
ImageUrlEditor =?Utf-8?B?c2FyYQ==?= ASP .Net 0 12-09-2004 09:49 AM
ImageUrlEditor =?Utf-8?B?c2FyYQ==?= ASP .Net 1 12-07-2004 12:23 PM
ImageUrlEditor =?Utf-8?B?c2FyYQ==?= ASP .Net 0 12-05-2004 08:09 PM