问题标签 [aspmenu-control]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2093 浏览

asp.net - ASP:Menu : 需要应用 CSS 来制作项目符号列表

我正在使用 ASP:Menu,我希望菜单如下所示。请建议如何应用 CSS 以及我应该进行哪些更改?

产品

  • 有存货
  • 缺货

订单

  • 订单
  • 销售订单
    • 延期交货
    • 发票

ASP:菜单代码如下。

Update1:​​由 ASP:menu 生成的当前 html 如下所示。

0 投票
4 回答
2277 浏览

c# - 具有灵活水平菜单的杂志网站数据库设计

我需要设计一个基于 CMS 的网站,使用 asp.net 网络表单 (c#) 和 MS SQL Server 作为杂志网站的后端数据库,该网站每周都会发行。

样本数据

上述方法的问题是,只有当所有记录都在MagazinePages基于上述示例的情况下,我才能创建子菜单我可以为“关于我们”和多媒体创建子菜单我如何设计我的数据库,以便我可以从不同的表中提取数据例如按类别分类的新闻(政治、文化......)和杂志表中的问题(第 101 期、第 102 期、第 103 期......)

我打算为此使用 ASP 菜单控件,这可能不是很灵活,因为我将有超过 100 期杂志如何或哪个多列菜单可以与 asp.net 一起使用

我的数据库可能有很多流程,我会很感激这方面的帮助,以便我可以将这个数据库用于这个 CMS 系统。如果对此有任何疑问,请随时提出问题。

补充:如果我需要从MagazinePages表中提取所有菜单名称,这很容易,但我被要求有一个菜单结构,如示例所示。问题是我可以为AboutUs& Multimediafrom MagazinePagesTable 生成菜单,但我没有任何页面,如 Politics,Economic,... Issue 101, 102, 103.. 在此表中,因为该信息存储在不同的表中,如News Category新闻表和Magazine表中的问题。我宁愿改变我的表格设计并使其灵活地从单独的表格中读取菜单信息,但我不确定如何

此架构中未显示新闻表。

我所做的是我为 CMS 页面创建了 ps_Pages 表,例如 Home、Aboutus、Contact、MediaCentre .....

我将与杂志相关的页面(实际上是具有不同类别或标签的文章,如文化、政治、体育、人物......)存储在art_Article表格中

0 投票
1 回答
357 浏览

c# - ASP.NET 路由阻止 asp.net 菜单控件显示水平子菜单

我正在开发一个完整的项目,在测试时发现 ASP.NET Routing 阻止菜单显示在具有友好 URL 的页面上(ASP.Net 4.0,C#)

路由代码

一切正常并设法使 Fancybox 与友好 URL 一起工作,但我无法弄清楚是什么阻止了子菜单显示在具有友好 URL 的页面上。

我设法解决了这个问题,因为它是由于路径

0 投票
1 回答
448 浏览

asp.net - asp.net web.config 授权属性在 Visual Studio 中工作,但不适用于发布

谢谢你的帮助。

编辑 这已从最初的问题改变,因为没有发布答案,并且问题更详细地演变

我正在尝试完成一个 asp.net 4.0 Web 应用程序。我正在努力管理基于文件夹的授权。

来自 web.config 的 XML 示例:

当通过 Visual Studio 启动 Web 应用程序时,授权工作得很好。

当我使用相同的 web.config 文件发布到我的机器上的本地目录时,授权只允许匿名用户进入 wardAdmin 和 personalAccount 文件夹(即适用于其他文件夹)。

有没有人遇到过类似的问题并知道解决方案?谢谢

0 投票
1 回答
1188 浏览

c# - What causes the extra blank line after menu items in my ASP.NET Menu under IE8?

I am using asp:Menu for the first time and running into a problem.

I have a horizontal menu with four options. The third option is "Filter". Hovering over "Filter" produces a vertical drop-down menu with several options, two of which are "Filter Category One" and "Filter Category Two". The dropdown menu with those options looks fine until I hover over one of the options (such as "Filter Category One") that has children.

At that time a blank line appears under "Filter Category One" at the same time that its own menu options (children) appear off to the right. Also a blank line appears at the bottom of the level-3 menu, which is the child menu that appears when I hover over "Filter Category One". In other words, the menu with the options Filter 1.1, Filter 1.2, and Filter 1.3 (see below) has a blank line below Filter 1.3.

I suspect (but am not positive) that the blank line between Filter Category One and Filter Category Two when hovering over Filter Category One has the same cause as the extra blank line that appears after Filter 1.3.

My customer uses only IE 8. I browsed using Firefox and Chrome and did not experience this particular problem. (Many other problems showed up, but not this particular one.)

I've found complaints about asp:Menu and IE8 at stackoverflow and elsewhere, but I have not seen a complaint identical to mine.

I would appreciate any help.

I'll be happy to attach a pic if there is a way to upload one.

FOLLOW-UP: We use IE8 Quirks Mode. The problem disappears in IE 8 Standards or IE 7 Standards mode (though other problems appear).

0 投票
2 回答
188 浏览

asp.net - Asp.net 控件会根据客户端呈现 HTML 吗?

我的页面上有 asp:menu 控件。在我的 Firefox 更新到 v17 之前,它从来没有任何问题。
asp:menu 控件在 asp.net 3.5 中生成表。但是我有 CssAdapter 来生成无序列表。但是在 FF v17 上它不再工作了。IE 和 Chrome 都不错。我怀疑 Firefox 的 refID 属性有关系!
我在 Asp.Net 3.5 上运行,因此没有可用的 RenderMode 属性。

0 投票
2 回答
1256 浏览

jquery - Change CSS Style with jquery in following HTML

I am working on one of the asp.net project which uses Drop-down Menus from from Dynamic Drive

After using it with asp.net Menu control asp.net automatically adds styles to it. I want to replace part of CSS Style using jQuery from the following code. I would appreciate help in this regards.

I want to change the style value of top: 28px; in UL with id="Menu1:submenu:11" to top:-58px; I am not sure how I can do.

HTML code is exact copy of asp.net web form in the browse.

I am not sure how I can reference to element with id Menu1:submenu:11 using jQuery & over right the whole style property style="display: none; position: absolute; top: 28px; left: 0px; visibility: visible; width: 186px;"

0 投票
0 回答
470 浏览

asp.net - 如何让 ASP.NET 菜单控件在没有动态行为的情况下显示嵌套列表?

使用 ASP.NET 菜单控件,我希望返回的标记是嵌套的无序列表,没有动态行为。

换句话说,我想将我的 StaticDisplayLevels 设置为数据源的完整深度,而不是生成的标记是 LI 元素的平面列表。

是的,我知道我可以进入 DOM 并获得我需要的东西,但是没有本机行为吗?

0 投票
2 回答
236 浏览

asp.net - 如何将菜单控件分配给主页面上站点地图的子节点

我在我的母版页上使用菜单控件,并使用站点地图数据源来填充它。它在菜单上显示主节点。有没有办法用我的主节点的子节点填充菜单,而不是使用默认的“主节点”,即主节点作为起始菜单项。

0 投票
2 回答
1566 浏览

asp.net - 菜单控件在环境之间的构建和呈现方式不同

我在我的页面上放置了以下菜单控件:

当我在本地主机上运行它时,它使用表构建,这很好,因为我在编写 css 时就知道这一点。

这里的问题是,当我将它复制到实时环境时,它使用 spans 和 div 构建,所以我所有的 css 都坏了。

这是css(实时副本只是删除了margin: 5px 0;行)

我花了大约半个小时来修复它,但我现在可以正常工作了(尽管实时样式表与我的测试样式表不同)。

谁能向我解释为什么我的本地主机和实时服务器之间的菜单构建不同?我敢肯定,如果正确完成,这实际上不应该发生...