Custom ASP.NET Web Menu Control – Part 2
by Kevin Koch

Welcome to the second and final part of this 2 part tutorial regarding creating a custom menu using ASP.NET’s Web Control Library projects.  During Custom ASP.NET Web Menu Control Part 1 we implemented a sample ASP.NET application and created a new Web Control Library project and created our own custom control which was responsible for displaying clickable menu items.

The menu items were fully customizable and could be coded for in the code-behind files of WebForms added to our sample project. We also built the ability to perform basic UI operations such as bolding the menu items and rendering the menu items either horizontally or vertically.

In this second part of the tutorial we fill focus on one of the more complex topics of custom web controls, which is linkage to the Visual Studio designer. To really make a custom control flow like a regular web control it needs to have the capability of being visually manipulated at design time by setting properties through the properties window.

We will expand upon our example built in Custom ASP.NET Web Menu Control Part 1 and add in the following features:

  1. Add a Designer class to render design time presentation
  2. Change the control name
  3. Demonstrate how to render custom HTML for the Visual Studio designer
  4. Add a font size property

Note: Visual Studio.NET running ASP.NET 1.x is required for this tutorial. Both VB.NET and C# code samples will be provided

- OR -

Kevin Koch

Kevin KochKevin Koch is a senior software engineer with over 8 years experience designing and architecting primarily web based applications. Fresh out of college during the nineties he co-founded Task Solutions and developed several projects with the then popular classic ASP.

During the Dot Com boom Kevin left his position as president and joined a new venture to build an enterprise insurance claim system build upon J2EE technology. After the Dot Com crash Kevin schooled himself to become an expert with .NET technology and is currently freelancing his ASP.NET skills to build enterprise n-tier frameworks using advanced OO methodologies.

See All Postings From Kevin Koch >>

Place your review about Custom ASP.NET Web Menu Control – Part 2

You must me logged in to write a review

Be the first to place a review