• 한국어 (대한민국)
    • English (United States)
    • العربية (مصر)
    • Deutsch (Deutschland)
    • Español (España, alfabetización internacional)
    • français (France)
    • हिंदी (भारत)
    • italiano (Italia)
    • 日本語 (日本)
    • Nederlands (Nederland)
    • polski (Polska)
    • русский (Россия)
    • ไทย (ไทย)
    • Türkçe (Türkiye)
    • Tiếng Việt (Việt Nam)
    • 中文(中华人民共和国)
    • 中文(香港特別行政區)
  • 로그인
  • 등록
DotNetAge - Mvc & jQuery CMS
사이드바 숨기기

DJME2 - DataBinding of Navigation extensions


    • 밑에 신청:
    • Developer guide
  • 0

Overview

DJME 2 Navigation extensions can be bind to Xml, SiteMap file and custom data object model.

Binding to XML

  • Bind(string xmlUri)
  • Bind(string xmlUri,MapAction mapper)

Binding to default Xml format:

When using the Bind(string xmlUri) method to binding Xml data the Xml format must be like below:

Binding to custom Xml format:

use the Bind(string xmlUri,MapAction mapper) to bind the custom xml format:

e.g:

store.xml

 

Binding to SiteMap

  • BindSiteMap(string siteMapUri)
  • BindSiteMap(string siteMapUri,string selectPath)

BindSiteMap allows you bind the ASP.NET sitemap file to navigation extensions.

There are some enhance of the sitemap file, in order to generate url for MVC you could add “action”,”controller” attribute in sitemapNode element.

e.g:

 

Binding to Data model

  • Bind(IHierarchicalEnumerable model, MapAction mapper)

 


    Average:
  • 읽기
    (1630)
  • 블로그 바로 가기
이전:DotNetAge core layer overview
공유:

What is newWhat is new

Tag cloud

Anything in here will be replaced on browsers that support the canvas element