ASP.NET中的上下文菜单 [英] Context Menu in ASP.NET

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

问题描述



我有一个C#.NET Web应用程序.我必须将上下文菜单附加到gridview.

ASP.NET Web应用程序中是否存在上下文菜单?我已经在Windows应用程序中看到它了吗?

我有一个要求:在右键单击时,多级上下文菜单(要从数据库中获取子级别)和上下文菜单应显示在网格上;单击每个子菜单项时,应调用带有已传递参数的函数.
是否有人有一个自定义控件/用户控件可以达到目的,或者在这方面请提出一些建议?

我已经在这里使用了下面的上下文控件
http://msdn.microsoft.com/en-us/magazine/cc163848.aspx
但它不提供数据库中的动态项目.它具有子项目的硬编码值...,我需要一个多级..它是单级上下文菜单.





在此先感谢!

Hi,

I have a C#.NET Web Application. I have to attach a context menu to a gridview.

Is Context Menu present in ASP.NET Web Applications? I have seen it in Windows applications?

I have a requirement where a mutilevel context menu (sub levels to be fetched from Database) and the context menu should appear on a grid on right click; On click of each sub menu item it should call a function with the parameters passed.
Does anyone have a custom control/user control which serves the purpose or please suggest something in this regard?

I have already used the context control below here
http://msdn.microsoft.com/en-us/magazine/cc163848.aspx,
but it doesn''t give dynamic items from the database. It has hard coded values for sub items... and I need a multilevel .. it is a single level context menu.





Thanks in Advance!

推荐答案

不仅可以,而且如果对它进行了Google搜索,那么您会发现它是第一个热门产品:

http://msdn.microsoft.com/en-us/magazine/cc163848.aspx [ ^ ]
Not only yes, but if you had Googled it, you would have found this as the very first hit:

http://msdn.microsoft.com/en-us/magazine/cc163848.aspx[^]


这篇关于ASP.NET中的上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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