如何保留母版页项目的价值 [英] How to retain the value of a Master Page item

查看:49
本文介绍了如何保留母版页项目的价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好...
我有一个包含2个菜单的主页...
我的任务是动态加载这些菜单项...我可以在页面加载时添加主菜单项...问题是当我单击主菜单中的菜单项之一时,我的子菜单项没有被添加/显示.
如何解决呢?
共3页
第一页,无任何子项目,e项目
第二页和第三页必须根据主菜单项的单击来加载.....
在此先感谢...

Hi there...
I have a master page with 2 menus...
My task is to load these menu items dynamically...I can add the Main menu items when the page loads...The issue is my submenu items dont get added\showing when i click one of the menu items in the main menu.
How to solve this?
There are 3 pages
First page without any sub,emu items
The second and third pages must be loaded according to the click of main menu item.....
Thanks in advance...

推荐答案

看起来像您在回发时没有重新设置菜单.动态创建控件时,需要在回发时重新创建它们以重新显示并让附加的处理程序正常工作.

如果这样不能解决您的问题,请发布重要的代码段.
Looks like you are not re-forming the menu''s on postback. When you create the controls dynamically, you need to re-create them at postbacks to re-show and let the attached handlers work properly.

If this doesn''t solve your problem then post important code-snippets.


这篇关于如何保留母版页项目的价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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