all groups > asp.net webcontrols > december 2004 >
You're in the

asp.net webcontrols

group:

Browsable Attribute


Re: Browsable Attribute John Saunders
12/31/2004 12:23:09 PM
asp.net webcontrols:
[quoted text, click to view]

Attributes are compile-time things, mostly, so you can't easily do this.
Also, I can't think of an example of a component or control which hides one
property based on the value of another property.

You can throw an exception in the property setter for property2 based on the
value of property1.

Also, if you create a designer for your component, you can override the
PostFilterProperties method to replace the normal "property2" property
setter and replace it either with one that has Browsable(false), or, for
instance, with one which is read-only.

John Saunders

Browsable Attribute Thiruppathi S
12/31/2004 2:22:31 PM
Hi All,

Could any body plz help me.
I want to set the browsable attribute value of "property2 " according to
the value of "property1"

i could able to change the value of that property but not the attribute

plz help me

Regards

S.Thiruppathi,

AddThis Social Bookmark Button