RSS

9) Introductiont to ASP.NET Menu Control and Sitemap [F]

In this video i demonstrate how to add menu to our website so you can move from one web page to another. I aligned the content of the navigation area to the top.

preview image

Go to the toolbox, drag the Menu control to the navigation area of the page. Click the small arrow sign on the menu control and choose a datasource, but because we dont have a data source we cannot do anything.

To add a datasource, a sitemap on this occasion, we right click on our project and select Add New Item. On the window that pops up, you select SiteMap. The sitemap will be the datasource for our menu control. Leave the default name and add it.

You add the url, title, and description to the sitemap for each page. Also remember that anytime you create a new page you need to add the page to the sitemap if you want it to be displayed on the menu.

Now we go back to the menu control and select a datasource, we select the sitemap option and click ok. You set your staticdisplaylevel to 2 to display your menu on the page.

Watch the video and leave comments.

  • Share/Bookmark

4 Comments Add Yours ↓

  1. 1

    Hello, I can’t understand how to add your blog ( stepbystepasp.net ) in my rss reader

  2. Steve #
    2

    After watching this video, I’m having a few problems recreating your work. Specifically, after placing a menu on the master pages table, I then connect it to the the sitemap data. Here is where the problem comes in. A gray placeholder box appears (sitemapdatasource). This gray placeholder box is huge and it pushes over the table column making it larger. This makes the next column too small for holding the central content of the web site. I can’t seem to resize this gray box and see no properties for it. This problem did not seem to occur in your video. I’m wondering what I did wrong?!

  3. 3

    stepbystepasp.net – cool sitename man)))

  4. Prasanth #
    4

    Hi
    Prashant

    I wanted a small tutorial on Voting System in asp.net



Your Comment