views:

34

answers:

0

Using ASP.NET 2.0

Say I have a user control that has a property which contains other properties. Is there a way to set these in a declarative fashion? For example, setting the MapOptions.Zoom property:

<goog:RegionPicker runat="server" id="RegionPicker1" MapOptions.Zoom="15" ></goog:RegionPicker>

I know I can expose it as a normal property, but I would like to avoid this since the nested property class is re-used in other user controls.

Being able to set the property declaritively would be nice because then I could use the terse databinding <%# %> Syntax. IntelliSense would be a bonus, but not required.