ASP. NET first knowledge 2

Source: Internet
Author: User
1. enabletheming: Enable and disable a topic.
2. <urlmappings> Configure URL address ing to enhance confidentiality
<Configuration>
<System. Web>
<Urlmappings enabled = "true">
<Add url = "~ /Category. aspx "mappedurl = "~ /Default. aspx? Category = default "/>
<Add url = "~ /Software. aspx "mappedurl = "~ /Default. aspx? Category = software "/>
</Urlmappings>
<System. Web>
</Configuration>
Mappedurl indicates the real address, and URL indicates the mapped address
3. Menu Control Style
Static mode style dynamic mode style description
Staticmenustyle dynamicmenustyle
Staticmenuitemstyle dynamicmenuitemstyle
Staticselectedstyle dynamicselectedstyle set the style of the selected menu item
Statichoverstyle dynamichoverstyle set the style when the mouse is hovering over the menu item
4. menu item level Style
5. Image properties of the Menu Control
Image attribute description
An optional image that dynamicbottomseparatorimageurl displays at the bottom of a dynamic menu item. It is used to separate a menu item from other menu items.
An optional image of dynamicpoutimageurl displayed in a dynamic menu item. It indicates that a menu item has a submenu item.
An optional image of dynamictopseparatorimageurl displayed at the bottom of a dynamic menu item. It is used to separate a menu item from other menu items.
Scrolldownimageurl: The image displayed at the bottom of a menu item. It indicates that you can scroll down to view other menu items.
Scrollupimageurl displays the image at the top of the menu item, which indicates that you can scroll down to view other menu items
Staticbottomseparatorimageurl: an optional image that is displayed at the bottom of a static menu item. It is used to separate the menu item from other menu items.
Optional images of staticpoutimageurl displayed in the static menu item, used to indicate that the menu item has a sub menu
Statictopseparatorimageurl: an optional image that is displayed on the top of a static menu. It is used to separate menu items from other menu items.
6. Menu Control Application Template
Automatically generated template Code
<Staticitemtemplate>
<% # Eval ("text") %>
</Staticitemtemplate>
<Dynamicitemtemplate>
<% # Eval ("text") %>
</Dynamicitemtemplate>

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.