向 asp.net 内容页添加选项卡
我有很多内容页面。在主页中,我添加了“关于我们”、“支持”、“联系我们”选项卡。这将出现在所有页面中。但某些页面的选项卡与其他页面不同。例如:组页面将有用户和消息选项卡,用户页面将有组选项卡和消息选项卡。我可以在母版页中设计它,因为它因页面而异。选项卡取决于用户权限,对于每个用户,它都会发生变化。这样做的最好方法是什么。
I have many content pages. In master page I have added the tab About us, support, contact us. Which will come in all pages. But some pages will have different tabs from other pages. EX: group page will have users and message tab, users page will have groups tab and message tab. I can design this in master page as it varies from page to page. The tabs depends on the user permission, for each user it is going to change. What is the best way of doing this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
作为一般概念,我会将选项卡开发为用户控件或服务器控件。该控件应根据当前用户和当前页面呈现其选项卡。如果这足以让您开始,那就太好了。如果没有,请发表评论,我会看看是否可以为您制作一个示例。
As a general concept, I would develop the tabs as a user control or server control. The control should render its tabs based on the current user and the current page. If that's enough to get you started, great. If not, post a comment and I'll see if I can put together a sample for you.