FreeKB - Visual Studio Sitemap
Visual Studio - Sitemap

Our first step is to create a sitemap file. In this example, let's say we have a Sidebar at the left of our website which needs to expand/collapse. Here is how to create the sitemap file for this sidebar.

  1. In Visual Studio, on the right (solution explorer), hover over the name of our site, right click and select Add -> New Item. Or just press Ctrl + Shift + A. The Add New Item popup box appears.
  2. In the Add New Item popup box, select Sitemap and click Add. Lets rename this to Web.sitemap.
  3. Each collapsable section will start with siteMapNode and end with /siteMapNode. Fill in the URLs and names of our pages.

Next, let's add a Side.

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter cacd8 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |