Bootstrap FreeKB - Visual Studio - Sitemap
Visual Studio - Sitemap

Updated:   |  Visual Studio articles

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.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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