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

Advertisement

Similar Posts

  • Accessing Embedded Resources through a URL using WebResource.axd more
  • Sharepoint 2007 & ASP.NET 2.0 WebParts more
  • This blog is now closed. Please update your links. more
  • Introducing CaptainHook - A Subversion Hook Framework For .NET more
  • Run Cassini as Root Web within Visual Studio more
  • Adding CoComment support to Community Server 2.1 more
  • Monitoring a web site on the local server with a Windows Service more
  • A new exciting version of Visual WebGui 1.0 (build 5.81.3.72.2) is available for download more
  • CS Dev Guide: Add new page or user control to Control Panel more
  • ASP.NET 2.0 Client Validation Javascript Bug more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | 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