Asp.net site ticket

Source: Internet
Author: User


The site is in flightControls that are more important than labels:

Sitemapdatasource

SitemapdatasourceA control is a data source control that providesProgram, InVisual
StudioIn the toolbox, the control isDataPart

Menu

MenuControls are connected to the display area according to the definition of the site location data source. The menu can be displayed horizontally or vertically, and many options can be configured in the same way.

Sitemappath

SitemappathThe widget uses a small blank space to show the hidden areaWebSite locations are set in the previous structure. It can be used to show the superscaling of the local image or image.

Treeview

TreeviewControls are displayed in a summary StructureWebThe end structure of the site.

The site hosts aerial file display name is. Sitemap


Description:

Web SITE STRUCTURE Web. sitemapFile Web Surface definition. This XML File in <Sitemap> The root element contains XML Element <Sitemapnode> .
<Sitemapnode> Element Definition Web Hidden area. The file name of the faces is URL Disruptive settings, Title This attribute specifies the name of the sequence displayed in the menu. Set <Sitemapnode> The element operator is a child element of the operator. (Contains the operator of the child element. ) , It defines the internal structure.
Sitemapdatasource A control is a data source control, similar to a data source control. This control can use different providers. Use by default Xmlsitemapprovider Class. Xmlsitemapprovider Usage Web. sitemap This is why the file name is never configured. If you rename XML File, the provider's Sitemapfile Encryption is required to set a new file name.
Use Menu Controls can be displayed in AspxYou can also add a menu in the source file. The simplest way to add a menu is to configure the data source and use the site data source.

How to use the site anti-bot service:
1And add "website hosting" to the solution ". The file name remains unchanged"Web. sitemap"
2InWeb. sitemapAdd to source workerSitemapnode. OneSitemapnodeCorresponds to a plane. The following generation

<? XML version = " 1.0 " Encoding = " UTF-8 "   ?>
< Sitemap xmlns = " Http://schemas.microsoft.com/AspNet/SiteMap-File-1.0 "   >
< Sitemapnode URL = " Login. aspx " Title = " Home " Description = "" >
< Sitemapnode URL = " Default. aspx " Title = " Default " Description = ""   />
< Sitemapnode URL = " Eventlist. aspx " Title = " Eventlist " Description = ""   />
</ Sitemapnode >
</ Sitemap >

3 Add sitemapdatasource , add the menu control, the data source is set to the sitemapdatasource control added by the dataset. ( This area corresponds to a menu )
5 , add the sitemappath control where you want to sail.
6 . The running result can be viewed.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.