动态数据填充 [英] dynamic data population

查看:80
本文介绍了动态数据填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在内容页面中动态填充了菜单项(菜单项是单击打开从数据库填充的文档时的文档名称),现在我想在单击动态菜单项时从数据库填充数据我填充的菜单(例如,我想通过向其传递菜单项ID来调用存储过程来填充数据)

动态菜单中是否存在用于菜单项的click事件处理程序.

建议或解决方案将不胜感激

谢谢!!!!!!!

I have dynamically populated menu items in my content page(menu items are document names which when clicked open a document which is populated from database),now I want to populate the data from database when I click on any item of the dynamic menu I populated(say I want to populate data by calling a stored procedure by passing menu item ID to it)

Is there a click event handler for menu items in dynamic menu.

Suggestions or solutions would be appreciated

Thanks!!!!!!!

推荐答案

不确定我是否正确理解了您的问题.但是,假设您具有菜单控件,并且该菜单控件是带有文档名称的动态填充的项目菜单,则可以执行以下样式:
您可以从属性窗口设置Menu的MenuItemClick事件.然后,在后面的代码中,您可以执行以下操作:
Not sure if I am understanding your problem correctly. But, assuming you have a menu control, and it is dynamically populated items menu with the document name, you can do sty like this:
You can set the MenuItemClick event of the Menu from the properties window. Then in the code behind, you can do sth like:
protected void Menu1_MenuItemClick(Object sender, System.Web.UI.WebControls.MenuEventArgs e)
{
  string documentName = e.Item.Value;
  // do sth with the document name
}


这篇关于动态数据填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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