Properly overriding the Width Property of Web Control?
Posted by: Rick Strahls WebLog,
on 15 Oct 2006 |
View original
Ok, heres a stupid question I keep running into this from time to time and I waste a few minutes on this every time I do and Ive never really resolved this properly.
If I have a control that inherits say from a Panel control (which basically generates a <div>) and I want to override the width to a different default value I do:
/// <summary>
/// Override default Width
/// </summary>
[DefaultValue(typeof(Unit),"250px")]
public...