First, I want to explain: Asp. net built-in sitemap is completely different from the sitemap mentioned here, Asp. the sitemap in net is mainly used for user navigation, and the sitemap mentioned here is used to guide search engine crawlers.
Let's
Developers who have used traditional asp.net forms know that asp.net provides a sitemap function to conveniently generate navigation menus or navigation links. You only need to configure the function to manage navigation links. For the configuration
I. Theoretical knowledgeInherited from sitemapprovider
To implement site navigation, sitemap is the most convenient feature in ASP. NET 2.0. If xmlsitemapprovider is used only, the navigation can only be reflected from the static sitemap file, and
I was not very concerned about Google's sitemap. Although I think this is indeed a good way for search engines to be lazy, I don't have to work hard to search every page. However, to allow users to actively submit content requires a great appeal.
First, create the sitemap file, right-click project-> add new item, and select site map in the pop-up box. Then, select OK. Now the sitemap file is created.
Edit its content. The default content in the new sitemap file is as follows:
First, create the sitemap file, right-click project-> add new item, and Select site map in the pop-up box. Then, select OK. Now the sitemap file is created.Edit its content. The default content in the new sitemap file is as follows:
1. Add a website map item Web. sitemap item
2. Write the Web. sitemap item as follows:
3. The configuration in the web. config file is as follows:
Description = "SiteMap provider which reads in. sitemap XML files ."Type = "system. Web.
How to Make sitemappath use the sitemap file with the specified path name
By default, the sitemappath control uses Web. sitemap in the root directory as the data source, but this can be changed. You just need to modify the settings.1. Add the
Recently do a small project with ASP, the user is not a lot, the function is not too complicated, but to do the right control when a little puzzled, so a small system if all do a large and complex authority control feel cost is not worth, intended
https://msdn.microsoft.com/zh-cn/library/dayb112d (v=vs.110). aspx
Elements
Description
anonymousidentification element (ASP. NET Setting Schema)
Configure anonymous
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.