asp.net网页中的动态菜单 [英] dynamic menu in asp.net web page

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

问题描述

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

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

我猜想,它只能通过xml才能实现.所以,首先,我要使用C#代码将所有记录从数据库获取到XML文件.

有人可以建议我如何利用该XML文件使菜单名称动态化吗?


此致

Dear All,
I have the menu in my application which retrieves the menu names from the database(dbo.tbl_MenuTable) 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.

I guess, its possible only through xml.. So, First, I am getting all the records from database to an XML file using C# code.

Can any one please suggest me how to make use of that XML file to make the menu names dynamic?


Regards,

推荐答案

ASP.NET动态XML基于JavaScript的Web菜单控件 [^ ]可以为您提供帮助.
ASP.NET Dynamic XML Web Menu Control based on JavaScript[^] could help you.


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

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