动态网页中的菜单名称 [英] Menu names in dynamic web page

查看:159
本文介绍了动态网页中的菜单名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我的应用程序中有菜单,该菜单从数据库中检索菜单名称
当我运行应用程序时.
但是我想动态显示相同的菜单名称(在运行应用程序之前).

我不应该对菜单项中的名称进行硬编码.而是应从数据库表中显示它们.

以下是菜单的html:

Dear All,

I have the menu in my application which retrieves the menu names from the database
when I run the application.
But I want to display the same menu names dynamically(before running the application).

I should not hardcode the names in menu items.. Instead, they should be displayed from the database table.

The following is the html for menu:

<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" Target="_self" MaximumDynamicDisplayLevels="1">
                       <items>
          <asp:menuitem >
            </asp:menuitem>
              


        </items>
                <StaticMenuItemStyle CssClass="CCL_innerpage_menu" />
        <DynamicMenuItemStyle CssClass="CCL_innerpage_menu" />
            </asp:Menu>




谁能给我个主意.

在此先感谢.

问候,
Raj




Can any one Please give me an idea.

Thanks in Advance.

Regards,
Raj

推荐答案

对不起,但我没有收到您的问题.
是否要从数据库加载asp.net菜单控件中的数据?

看到这很简单:
http://aspalliance.com/822_Building_a_Database_Driven_Hierarchical_Menu_using_ASPNET_20

或您还有其他要求吗?
sorry, but i am not getting your question.
do you want to load the data in your and asp.net menu control from database ?

see this its quite straight forward:
http://aspalliance.com/822_Building_a_Database_Driven_Hierarchical_Menu_using_ASPNET_20

or do you have any other requirements ?


关注此链接.

使用数据库绑定菜单控件 [
Follow this link .

Binding Menu Control With Database[^]


这篇关于动态网页中的菜单名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆