Loading ...

properties window is not showing property with Browsable attribute

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  web forms / data controls   » properties window is not showing property with Browsable attribute

properties window is not showing property with Browsable attribute

Posts under the topic: properties window is not showing property with Browsable attribute

Posted: 2/10/2009

Lurker 39  points  Lurker
  • Joined on: 1/8/2009
  • Posts: 14

Plz Check the code snippet,

 public class MyCompositeControl:CompositeControl
    {
        [Browsable(true)]
        [Category("Appearance")]
        public string FirstText
        {

I am creating one custom control and for a public property FirstText i have added the  Browsable attribute.

But  still the FirstText peroperty is not showing in the properties window when i right click the control in the design view.

Note: If you check the HTML then the property FirstText is available.If you add [Browsable(false)] attribute to the public property, even then the attribute is available in the HTML.

Why so happening?


Page 1 of 1 (1 items)