Dynamic Menu's

  • Thread starter Thread starter brian
  • Start date Start date
B

brian

I am looking at purchasing or creating a dynamic
navigational menu system that would be binded to SQL
server 2000 data. The users id is stored in the SQL
server and based on the id is what the navigational menu
would show.

I would perfer to gain the experieance of building it
myself but theres not much documentation out there on
that subject. If anyone has any please guide me to it.

Also, has anyone purchased a menu control that is driven
from SQL server 2000? If so, do you recommend it? What
is it?

Also, I am looking to have a menu with multiple
subcatagories.

Thanks
 
I am looking at purchasing or creating a dynamic
navigational menu system that would be binded to SQL
server 2000 data. The users id is stored in the SQL
server and based on the id is what the navigational menu
would show.

I would perfer to gain the experieance of building it
myself but theres not much documentation out there on
that subject. If anyone has any please guide me to it.

..NET Nuke (http://www.dotnetnuke.com/) builds menus dynamically based on the
pages that you have created for the menu. It is multi-level with fly-out
child menus and icons. It's free (open-source) and it's actually pretty
sweet, although, it's built directly into the app, so you will have to do
some work to isolate it. The entire system is extremely modular, so it
shouldn't be too hard to do.

HTH,
Jeremy
 
I'm currently working with the UltraWebNavigator menuing system from
Infragistics
[http://www.infragistics.com/products/navigation.asp?sec=0&cat=1].

I'm driving the entire content and structure from a SQL Server database
(although with ADO.NET the data source really doesn't matter), and currently
enable up to 5 levels (the control does not limit the number of levels you
can have).

It's not cheap, and there may be some concern with downlevel browser
support.

DK
 
Ken said:
Be sure to check out Scott Mitchell's free menu control which includes
source code.

You bind it to a datasource:

http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=1910&tabindex=2

Ken, thanks for the plug. I just wanted to clarify one point - there is
(currently) no method in skmMenu that will bind results from a database
to the menu. There are two ways to specify the menu's structure:

(1) Bind it to an XML file
(2) Programmatically specify the menu's structure

So, to get it to mold to data in a database, you'd need to use option 2,
iterating through the database results and programmatically constructing
the menu.

As an aside, anyone who is interested can learn more about skmMenu at
the official Web site: http://www.skmMenu.com/

Thanks!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Scott-

When you say I could use option (2) Programmatically specify the menu's
structure am I Programmatically building an XML file and then binding to
it?

Could you please explain more! I couldn't find anything concerning this
on your website.

Thanks

It looks like you have a really good product.
 
brian said:
When you say I could use option (2) Programmatically specify the menu's
structure am I Programmatically building an XML file and then binding to
it?

Could you please explain more! I couldn't find anything concerning this
on your website.

Brian, I mean building up the menu using the SubItems property. Like so:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If (Page.IsPostBack = False) Then
Dim submenu1 As New skmMenu.MenuItem("<img
src=""menublip.gif"" align=""absmiddle"">Dynamic Item 1", "")

submenu1.SubItems.Add(New skmMenu.MenuItem("Sub Item 1",
"page1.html"))
submenu1.SubItems.AddSpacer(5, "")
submenu1.SubItems.Add(New skmMenu.MenuItem("Sub Item 2",
"page2.html"))

Dim submenu3 As New skmMenu.MenuItem("Sub Item 3 ->", "")
submenu3.SubItems.Add(New skmMenu.MenuItem("Sub Item 3 -
1", "page1.html"))
submenu3.SubItems.Add(New skmMenu.MenuItem("Sub Item 3 -
2", "page2.html"))

submenu1.SubItems.Add(submenu3)
submenu1.SubItems.Add(New skmMenu.MenuItem("Sub Item 4",
"page4.html"))
submenu1.SubItems.Add(New skmMenu.MenuItem("Sub Item 5",
"page5.html"))
submenu1.SubItems.Add(New skmMenu.MenuItem("Sub Item 6",
"page6.html"))
Menu1.Items.Add(submenu1)

...
End Sub

You can download some skmMenu examples, one of which includes building
the menu dynamically, from http://skmmenu.com/menu/Download/

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Back
Top