coding

 SiteMapPath


The SiteMapPath control displays a list of links representing the user's current page and the hierarchal path back to the root of the website. This functionality is sometimes referred to as a breadcrumb for the user.

How to: Add Simple Site Navigation
To use these site-navigation controls, you must describe the structure of your Web site in a Web.sitemap file.

To create a Web.sitemap file
Create a file in the root directory of your Web site called Web.sitemap.
Open the Web.sitemap file and add the following code (for example).<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
  <siteMapNode title="Home" url="~/default.aspx" >
    <siteMapNode title="Contact Us" url="~/Contact.aspx"/>
    <siteMapNode title="About us" url="~/About.aspx"/>
  </siteMapNode>
</siteMap>

Save your file and then close it.


To add site navigation to a Web page
Create a file in the root directory of your Web site called Training.aspx.

Open Training.aspx and add the following code.


 نظرات (2)   |   نویسنده : leila sinaki   |   گروه C#   |   لينک به نوشته