English 中文(简体)
DropDownMenu using MVCSiteMapProvider
原标题:DropDownMenu using MVCSiteMapProvider

我使用的是p.net mvc3 razor发动机,并试图利用MVCSiteMap提供商使菜单化,但当我使用多层次的现场地图时,菜单控制使网页上的所有节点都无法运行,而Hover功能则无法运作。

Please tell, there is any way to this.

最佳回答

This isn t worded very well, but basically he s asking for navigation menu functionality. I m looking for the same thing myself. Basically, the MVC sitmap provider default template just seems to show all the nodes all at once, regardless if it s a child node or not. What he s looking for (and myself as well) is for only the TOP level nodes to be shown (which you can do easily enough), but for the CHILD level nodes to be visible when you hover over the parent links. Basically, the way the old asp:Menu used to work in ASP.Net with the original sitemapprovider.

我确信,这只是一个诱惑性的问题,但如果没有其他人已经这样做,我会感到震惊。 还没有发现。

问题回答

暂无回答




相关问题
How to update shared view adminheader.cshtml from a model

I ve added a drop down into my shared adminheader.cshtl view and it needs to be dynamically updated from data from a table. So when I use another view like routeplan.cshtml I load the view from ...

ASP.NET MVC Razor view engine

After reading Scott Guthrie s blog entry about the new Razor view engine for ASP.NET MVC and reading this question comparing the available view engines. Razor seems to address most of the problems ...

Client Id for Property (ASP.Net MVC)

I m trying to do a label for a TextBox in my View and I d like to know, how can I take a Id that will be render in client to generate scripts... for example: <label for="<%=x.Name.ClientId%>"...

Get Current Area Name in View or Controller

How do you get the current area name in the view or controller? Is there anything like ViewContext.RouteData.Values["controller"] for areas?

MVC which submit button has been pressed

I have two buttons on my MVC form: <input name="submit" type="submit" id="submit" value="Save" /> <input name="process" type="submit" id="process" value="Process" /> From my Controller ...

热门标签