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   

My Links

Ads Via DevMavens

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<March 2010>
SMTWTFS
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

Comment Stats

DayTotal% of Total
Sunday 2056.8%
Monday 42514.1%
Tuesday 51917.2%
Wednesday 55618.4%
Thursday 58019.2%
Friday 54718.1%
Saturday 1886.2%
Total 3020100.0%

Hour1Total% of Total
12:00 AM 782.6%
1:00 AM 812.7%
2:00 AM 682.3%
3:00 AM 822.7%
4:00 AM 692.3%
5:00 AM 1264.2%
6:00 AM 1193.9%
7:00 AM 1816.0%
8:00 AM 1926.4%
9:00 AM 1585.2%
10:00 AM 1886.2%
11:00 AM 1936.4%
12:00 PM 2016.7%
1:00 PM 1846.1%
2:00 PM 1695.6%
3:00 PM 1354.5%
4:00 PM 1153.8%
5:00 PM 1073.5%
6:00 PM 1013.3%
7:00 PM 1073.5%
8:00 PM 923.0%
9:00 PM 882.9%
10:00 PM 913.0%
11:00 PM 953.1%
Total 3020100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.00160
Monday 4.80384
Tuesday 4.04477
Wednesday 7.39680
Thursday 6.26676
Friday 5.07466
Saturday 4.78177
Total 5.403020

Hour1 Entry MadeAvg.Total
12:00 AM 5.2937
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 3.8550
8:00 AM 3.72134
9:00 AM 6.06297
10:00 AM 5.63276
11:00 AM 4.22194
12:00 PM 6.16351
1:00 PM 3.09133
2:00 PM 4.89230
3:00 PM 7.67322
4:00 PM 4.00108
5:00 PM 6.07170
6:00 PM 4.64116
7:00 PM 8.95188
8:00 PM 8.63164
9:00 PM 5.00115
10:00 PM 6.31101
11:00 PM 4.5732
Total 5.403020

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


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles