母版页左导航菜单 [英] Master page left Navigation menu

查看:109
本文介绍了母版页左导航菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有一个母版页,该母版页的顶部包含水平菜单,当我单击特定菜单图标时,我必须显示左侧菜单.现在可以,但是在单击左侧菜单项我的页面会刷新,左侧菜单将隐藏.我要做的是不隐藏左侧菜单.请建议我该怎么办.


例如

----------------首页-关于-个人资料

主页
与我们联系

当我单击左侧与我们联系菜单项时,我的左侧菜单页面将刷新,菜单将消失.但是我不想消失我的菜单!!!!

hello,
i have a master page which contains horizontal menu at the top, when i click on particular menu icon, i have to display left menu.till now ok, but after clicking left menu item my page gets refreshing and the left menu going to hide.what i have to do for not to hide the left menu. please suggest me what to do.


for example

----------------Home - About - Profile

Home
Contact us

when i click on left side contact us menu item my left menu page refreshing and menu going to disappear. but i dont want disappearing my menu!!!!

推荐答案

.. m我的左侧菜单页面正在刷新,菜单将消失.
确切地提出实现它的最佳方法并不难,但是可以肯定的是,您可以使用一种状态管理技术来实现所需的功能.

看看这些:
MSDN:ASP.NET状态管理概述 [ ASP.NET中的状态管理-1 [ ASP.Net状态管理技术-2 [
..m my left menu page refreshing and menu going to disappear.
It''s little hard on exactly suggest best way of implementing it but surely you can achieve what you need using one of the state management techniques.

Have a look at these:
MSDN: ASP.NET State Management Overview[^]
State management in ASP.NET - 1[^]
ASP.Net State Management Techniques - 2[^]


For example, in your case, you can keep one hidden field as a flag if the left nav bar is visible or not. Once you click top horizontal menu, based on which left nav bar appears, set the flag (lets say it isLeftNavOpen) as true. Now, always in your code during page load, check if the flag is true, if so, set the visibility of the left nav as visible.

Try!


嗨...您能发布代码吗?

可能是宽度和高度问题,还有对齐问题.
Hi... can u post the code.

Might be width and height problem and also alignment.


这篇关于母版页左导航菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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