Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DesignTime-Support for self-defined value list - how to do that?

Thread Tools

DesignTime-Support for self-defined value list - how to do that?

Posts: n/a
I am implementing an Extension control that provides other Controls
with a set of properties.
One of the properties should be a list of values that is configurable
by the user (aka developer).

The Extension control itself has a collection property where the user
can specify the values that should be allowable for the extension on
the other controls.

I am able to provide the VS Designer with that list in Design mode when

the method ITypeDescriptor.GetStandardValues() is called with a valid
conext as parameter. There I retrieve my own Extender control and query

it for the current list of allowed values.
But when I work in Markup, the type descriptor is called with an empty
context ('null').
How can I retrieve the current list of property values from my extender

control when in markup mode?

Below is a snippet of the markup for my extender control

<my:Extender ID="extender1" runat="server">
<my:AllowedValue name="one" value="1"/>
<my:AllowedValue name="two" value="2"/>
<my:AllowedValue name="three" value="3"/>
<my:ExtensionProvided ControlId="ctl1" Preset="one"/>

When I open this markup, delete the '="one"' behind Preset and press
the '=' key, I get an intellisense list which should contain 'one',
'two' and 'three', but the list is always empty...

Any ideas?

Guenter from Frankfurt/Germany

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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: Sort dictionary by value when value is a list Chris Rebert Python 0 11-14-2008 08:10 PM
searching a value of a dict (each value is a list) Seongsu Lee Python 21 12-14-2007 06:32 PM
retrive preselected value in second drop down list from the first drop down list weiwei ASP .Net 0 01-05-2007 07:29 PM
setting the selected value of radiobutton list from database value ASP .Net 1 05-14-2006 01:26 AM