如何在母版页中更改visibiltiy [英] how to change visibiltiy in the master page

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

问题描述

<asp:Panel ID="lgnPanel" runat="server" Height="128px" Width="188px">
                <div id="div1" align="center">
					<a href="Login.aspx" title="Home">Logout</a><br />
                                       <a href="ManageUsers.aspx" title="About Us">Manage Users</a>
					<br />
					<a href="#" title="Products">Manage Clients</a>
					<br />
					<a href="#" title="Our Services">Manage TimeSheets</a>
					
					
					<a href="Reports.aspx" title="Contact Us">Reports</a>
					</div>









这是我母版页中的设计。如果经理登录,那么他应该可以左侧标签为

退出

管理用户

管理时间表

报告

我的疑问是,当用户登录时意味着他被限制在一些标签中,所以他应该能够看到

登出

报告。怎么做





This is the design in my master page. if manager logged in then he should able to left side tabs as
Logout
manage user
manage timesheets
reports
my doubt is when user logged in means he is restricted to some tabs so he should able to see
logout
reports. how it can be done

推荐答案

你可以使用会话,或者你可以把你想要的标签更改为内容占位符的可见性并更改这个地方的内容每个page.aspx中的持有者。
you can use sessions or you can put the tabs you want to change its visibility in a content place holder and change the content of this place holder in each page.aspx separately.


这篇关于如何在母版页中更改visibiltiy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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