母版页 - 默认 [英] Master Page - Default

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

问题描述





我使用默认母版页来设置菜单,它添加了Home和About。还包括登录链接。例如,登录后,在转到使用主文件的下一页(main_menu.aspx)以生成菜单后,不会将登录更改为注销。另外,我需要从菜单中禁用关于标签,以测试如何操作。



你能帮帮忙吗?谢谢。

解决方案

使用 LoginStatus 控件 [ ^ ]在登录和注销链接之间自动切换。



或者,使用 LoginView 控件 [ ^ ]根据用户的角色和登录状态显示不同的内容。

Hi,

I am using the default master page to have a menu, it adds "Home" and "About". Also includes a link for "login". For example, after logging in it doesn't change the login to logout after going to next page (main_menu.aspx) that is using the master file as well to generate the menu. Also, I need to disable the "About" tab from the menu just to test how to do that.

Can you help? Thanks.

解决方案

Use the LoginStatus control[^] to automatically toggle between "log in" and "log out" links.

Alternatively, use the LoginView control[^] to display different content based on the user's roles and logged-in status.


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

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