Scott on Writing

Musings on technical writing...

Building an ASP.NET Menu Server Control

My latest article in the MSDN ASP.NET Dev Center - Building an ASP.NET Menu Server Control - is up and ready to be read!  This article looks at an open-source menu system I created - skmMenu - and discusses the challenges involved in creating such a menu server control.  (This article is the first in a two-part series...)

Anyway, if you are looking for a free ASP.NET menu control, give skmMenu a whirl.  The complete source code is available on the skmMenu GotDotNet Workspace, and you can even join the project to enhance the code base, if you like.

posted on Friday, November 07, 2003 9:38 AM

Feedback

# re: Building an ASP.NET Menu Server Control 11/11/2003 7:06 AM Adam Kinney

Wow, this is awesome. Yesterday, I realized I had enough of the Infragistics Web Menu and all of its shinanigans, so I decided to write my own. An hour into it I found this post sitting in my Sharp Reader...

Thanks for the big boost on getting my menu up and running!

First thing I added was support for rollover. I'm a designer, man, I need my images! :D

# re: Building an ASP.NET Menu Server Control 11/11/2003 4:12 PM Scott Mitchell

Glad to like it, Adam. I have a slew of updates from various users in the queue, that I'll add to skmMenu eventually. Rollover support is there, as well as some bug fixes for JavaScript errors in IE 5.01. The only problem is I've been too busy lately to encorporate these changes into the release code.

Meh.

# re: Building an ASP.NET Menu Server Control 11/12/2003 10:46 AM Mike Schellenberger

Scott,

Great article and control, I can't wait for the second part. Whats the ETA on part 2?

May I suggest you include a sample xml menu file with the source.


# re: Building an ASP.NET Menu Server Control 11/12/2003 11:49 AM Adam Kinney

I actually worked on it some more and I ended up breaking it out to override the Render methods for the Menu and MenuItem to create their own individual output when its time for them to render.

I did this because I wanted to be able to make changes to each item after it was databound. For example changing an image to a disabled image if the user doesn't have security.

As I am working on replacing the Infragistics menu, I also had to add in the obligatory dropshadow too...

# re: Building an ASP.NET Menu Server Control 11/12/2003 8:46 PM Scott Mitchell

Mike, I already wrote Part 2, so it's up to Kent Sharkey (the ASP.NET Dev Center owner) when it's time to get posted.

If you download the project code, there should be a sample menu file, menuData.xml, IIRC. There's also one online here:
http://aspnet.4guysfromrolla.com/demos/MenuData.xml

# re: Building an ASP.NET Menu Server Control 11/14/2003 5:04 AM Mike Schellenberger

Scott,
I checked again and there was no menuData.xml with the source for .NET 1.1 version I downloaded a couple of days ago.

Also had some issues related to proxy server here that took a couple of hours to overcome. Here is what I had to do to get things to go thru the proxy server.
WebProxy proxy = new WebProxy("http://webproxy:80/", true);
proxy.Credentials = CredentialCache.DefaultCredentials;
GlobalProxySelection.Select = proxy();

This might be a nice addition to the article/project as there is really not a lot of info out there relating to getting thru a proxy.

Keep up the great work.

Mike Schellenberger - MCAD

# re: Building an ASP.NET Menu Server Control 12/12/2003 1:02 AM Maqsood

Scott
Demo is Great

But Why Can't i add this to my Toolbox in VS.NET 2002

mac

# re: Building an ASP.NET Menu Server Control 12/12/2003 9:24 AM Scott Mitchell

The Version 1.3, I believe, was designed for .NET Framework 1.1. What you'll need to do is create your own VS.NET 2002 project, copy in the files, and build the project. Then, add *that* compiled assembly to your Toolbox.

For further discussion, let's take this to the skmMenu Messageboards - http://www.gotdotnet.com/Community/MessageBoard/messageBoard.aspx?id=5587

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

Add To Your Reader

My Links

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<May 2008>
SMTWTFS
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Comment Stats

DayTotal% of Total
Sunday 1866.8%
Monday 37913.9%
Tuesday 45316.7%
Wednesday 50418.5%
Thursday 53519.7%
Friday 49418.2%
Saturday 1666.1%
Total 2717100.0%

Hour1Total% of Total
12:00 AM 652.4%
1:00 AM 682.5%
2:00 AM 622.3%
3:00 AM 742.7%
4:00 AM 572.1%
5:00 AM 1033.8%
6:00 AM 1084.0%
7:00 AM 1585.8%
8:00 AM 1716.3%
9:00 AM 1475.4%
10:00 AM 1716.3%
11:00 AM 1816.7%
12:00 PM 1886.9%
1:00 PM 1696.2%
2:00 PM 1605.9%
3:00 PM 1324.9%
4:00 PM 1073.9%
5:00 PM 923.4%
6:00 PM 913.3%
7:00 PM 963.5%
8:00 PM 833.1%
9:00 PM 782.9%
10:00 PM 792.9%
11:00 PM 772.8%
Total 2717100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.54144
Monday 5.22339
Tuesday 4.28419
Wednesday 7.67637
Thursday 6.90607
Friday 5.48411
Saturday 5.33160
Total 5.842717

Hour1 Entry MadeAvg.Total
12:00 AM 5.0035
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 7.0035
8:00 AM 5.35107
9:00 AM 6.32278
10:00 AM 6.47246
11:00 AM 4.41181
12:00 PM 6.88330
1:00 PM 3.00111
2:00 PM 5.41222
3:00 PM 8.64285
4:00 PM 4.0589
5:00 PM 5.92154
6:00 PM 4.52113
7:00 PM 9.67174
8:00 PM 9.80147
9:00 PM 5.05111
10:00 PM 5.4265
11:00 PM 4.5732
Total 5.842717

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles