菜单控件如何从sitemapdatasource id知道我需要从web.sitemap创建列表 [英] How Menu Control comes to know from sitemapdatasource id that i need to create list from web.sitemap
本文介绍了菜单控件如何从sitemapdatasource id知道我需要从web.sitemap创建列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我拖放了MenuControl.创建web.sitemap.单击右上的槽口
菜单控件,并浏览数据源为SiteMap.添加的代码是sitemapdatasource标签.
1.这是菜单控件
i dragged and dropped MenuControl. Create web.sitemap. clicked on upper right notch
of Menu control and browse datasource as SiteMap. Code added was sitemapdatasource tags.
1. This is Menu control
<div id="MenuWrapper"><asp:Menu ID="Menu1" runat="server" CssClass="MainMenu"
DataSourceID="SiteMapDataSource1" StaticEnableDefaultPopOutImage="false" Orientation="Horizontal"></asp:Menu>
具有sitemapdatasource id
2.这是我的sitemapdatasource标记
having sitemapdatasource id
2. This is my sitemapdatasource tag
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="False" />
我无法在任何地方看到我的文件web.sitemap,因此如何知道此菜单
我需要自行创建无序列表frm web.sitemap.
I cant see my file web.sitemap reffered anywhere So how this menu comes to know
that i need to self create unordered list frm web.sitemap. Can some1 please help??
推荐答案
希尔帕,
您的问题不清楚.这里有一些适合您的示例.
< configuration>
< system.web>
< sitemap enabled ="true">
defaultProvider ="SiteMapDataProvider">
< providers>
< add name ="SiteMapDataProvider">
type ="DBlock.SiteMapDataProvider,DBlock.SiteMapDataProvider"/>
请参阅此链接以获取详细信息和更多信息.
http://www.codeproject.com/Articles/16860/Building-a-dynamic-SiteMap-in-ASP-NET-2-0-for-a-la
Hi Shilpa,
Your question is unclear. Some examples here for you .
<configuration>
<system.web>
<sitemap enabled="true">
defaultProvider="SiteMapDataProvider">
<providers>
<add name="SiteMapDataProvider">
type="DBlock.SiteMapDataProvider, DBlock.SiteMapDataProvider" />
Refer to this link for details and more information .
http://www.codeproject.com/Articles/16860/Building-a-dynamic-SiteMap-in-ASP-NET-2-0-for-a-la
这篇关于菜单控件如何从sitemapdatasource id知道我需要从web.sitemap创建列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文