Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Oleg Ogurok #1
provide several values for a String property
Hi all,
If you look at the properties window of a HyperLink control (during the
design time), you'll notice that its property Target is a System.String,
which has several pre-defined values, such as "_self", "_blank", etc.
Moreover, the designer allows you to enter your own custom property value.
How can I implement the same behavior in my custom control? Is there an
Attribute one can use to supply several pre-defined values?
-Oleg.
Oleg Ogurok Guest
-
Resetting Property Values
You could probably walk the class and check for properties with a DefaultValue attribute; pull the value of the attribute and see the property. This... -
Problem with Property values in HTML tag
When I set one of my custom control properties programmtically the control, as below, the control gets the value and spits it back out at the right... -
Property with multiple values
Hello folks! I'm creating a control that needs to accept an unlimited list of ids for TextBoxe or DropDownList controls, preferably with check for... -
Custom Property doesn't save values
Hello all, I've defined a custom control with the property of type string. If I assigned values to the property at design time, I can see these... -
Sorting property list by the values
Hello all I'm not sure if I can do this without an Xtra or summat... I have a property list like this: I want to sort this list by the... -
John Saunders #2
Re: provide several values for a String property
"Oleg Ogurok" <oogurok@thecramgroup.ihatespammers.ireallydo.co m> wrote in
message news:2fcd8$3f5e20e8$825ec943$14085@nf1.news-service.com...Yes. You can assign a TypeConverter to your property, and use the> Hi all,
>
> If you look at the properties window of a HyperLink control (during the
> design time), you'll notice that its property Target is a System.String,
> which has several pre-defined values, such as "_self", "_blank", etc.
> Moreover, the designer allows you to enter your own custom property value.
>
> How can I implement the same behavior in my custom control? Is there an
> Attribute one can use to supply several pre-defined values?
GetStandardValues and GetStandardValuesExclusive methods.
--
John Saunders
Internet Engineer
[email]john.saunders@surfcontrol.com[/email]
John Saunders Guest



Reply With Quote

