The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Marking public properties as design-time properties on web controls

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Steve Hebert

Posts: 218
Nickname: sdhebert
Registered: Apr, 2005

Steve Hebert is a .NET developer who has created the .Math compiler library.
Marking public properties as design-time properties on web controls Posted: May 24, 2006 8:12 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Steve Hebert.
Original Post: Marking public properties as design-time properties on web controls
Feed Title: Steve Hebert's Development Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/steve.hebert/rss.aspx
Feed Description: .Steve's .Blog - Including .Net, SQL Server, .Math and everything in between
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Steve Hebert
Latest Posts From Steve Hebert's Development Blog

Advertisement
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;
      }
}

 


Share this post: Email it! | bookmark it! | digg it! | reddit!

Read: Marking public properties as design-time properties on web controls

Topic: [Architecture] Skyscrapr - Career Advice for Aspiring Architects Previous Topic   Next Topic Topic: [Game] Zombie Quest - A New Free 2D Adventure With Source Code

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use