English 中文(简体)
Asp.net: How tolink a SiteMapPath to a SiteMapProvider
原标题:Asp.net: How to link a SiteMapPath to a SiteMapProvider
  • 时间:2012-01-12 18:34:40
  •  标签:
  • asp.net

我有一刀切的SapProvider和一米试图将其与我的SapPath控制联系起来。

我已经有了一个SapDataSource,因为:

<asp:SiteMapDataSource ID="SMDS1" runat="server" SiteMapProvider="SiteMapProvider" />

正在作业的树木

<asp:TreeView ID="tvwMenu" runat="server" DataSourceID="SMDS1"></asp:TreeView>

trying to add a SiteMapProvider to my SiteMapPath doesn t seem to be working (edit: when i m saying "not working", i mean not showing anything at all. I know it loads cause the load event is fired, but there is no items being created)

<asp:SiteMapPath ID="breadcrumb" runat="server" SiteMapProvider="SiteMapProvider" >

因此,我怎么敢于让我的SomaapPath工作?

最佳回答

问题得到解决!

事实是,树木口号不需要知道他(即)的“什么地方”。 浏览器正在访问哪页,而SapPath确实需要知道。 因此,为了实际了解这一点,SandMapPath将研究URL,了解他的“地点”。 问题是,这页上有一个名为“纳维亚格登试验场”的网页,该网页与现场地图相距甚远。 因此,当我用“指数.aspx?page=pageName”对其进行审判时,它开始做的是罚款。

Hope this will help anyone else facing the same issue.

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签