开发者

Adding tabs to asp.net content page

开发者 https://www.devze.com 2023-04-04 15:09 出处:网络
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 wil

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号