CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Steve Hebert's Development Blog

Steve's Blog - From .Net to dotMath and everything in between.

Marking public properties as design-time properties on web controls

I run into this infrequently enough that I have to search on the properties.  Since I usually have a hard time finding the details...

Using the "Bindable" attribute on a public property will make this property available through the design-time properties and settable on the aspx.

The aspx setting for the following property would be:
    <csc:ExpandoList ID="List-O-Stuff" CssClass="expandoList" UnhideableRowCount=7 />

[Bindable(true),
   Category("Appearance"),
   DefaultValue(5)]

public int UnhideableRowCount
{
      get
     
{
        return _unhideableRowCount;
      } 
      set
     
{
        _unhideableRowCount = value;
      }
}

 




Comments

simone_b said:

It's not the Bindable attribute, it's the Browsable attribute...
# May 26, 2006 7:31 PM
Check out Devlicio.us!

Our Sponsors