Properly overriding the Width Property of Web Control?

Posted by: Rick Strahls WebLog, on 15 Oct 2006 | View original | NEW Bookmarked: 0 time(s)

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...

Advertisement
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1515 | Hits: 103

Similar Posts

  • Announcing Microsoft Ajax Library (Preview 6) and the Microsoft Ajax Minifier more
  • Tutorial: create a custom Silverlight Splash Screen more
  • Announcing the Microsoft AJAX CDN more
  • Ajax Control Toolkit: new controls, bug fixes more
  • Data-binding Telerik CoverFlow for Silverlight + some Routed Commands goodness more
  • Announcing the WebsiteSpark Program more
  • Creating Objects with Observable Properties in JavaScript more
  • Intersoft Solutions Announces WebUI Studio 2009 Service Pack 1 more
  • WebChart AJAX Zooming and Scrolling: How to get the most out of your data more
  • Animation Hack Using Attached Properties in Silverlight more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD