Hiding ASP.NET Controls from the Toolbox

Posted by: Rick Strahls WebLog, on 22 Jun 2007 | View original

I've often built custom ASP.NET controls that contain other custom child controls. For example, I have a DataBinder control that contains individual DataBindingItems which are based on Control. The problem is that by default these child controls show up on a control list. Here's what the Visual Studio auto-configured control list looks like for my controls: The highlighted controls are child controls that shouldn't be there. This is only an issue if the child items derive from System.Web.UI.Control....

Advertisement

Similar Posts

  • August 9th ASP.NET Link-Listing more
  • Building your own data bound controls... more
  • Templates - Part 1 more
  • Templates - Part 2 more
  • Frames, ASPX Pages and Rejected Cookies more
  • SDC Sessions - THE CODE more
  • Tech Ed 2006 Summary more
  • July's Toolbox Column in MSDN Magazine more
  • Avoid IISRESET in ASP.NET applications (added bonus: ASPRESET) more
  • Software Development Conference 2006 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