By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

[Asp.net]: master page content hiding for different users

P: 12
Hi friends,

I designed one master page in my application.
Here i am stuck up with hiding the content for the different users login.
If the login user is Admin he needs to see some content and for other users they can not see that content.
How can i hide the content of master page for specific login user.
thank you.
Oct 8 '08 #1
Share this Question
Share on Google+
4 Replies


kenobewan
Expert 2.5K+
P: 4,871
Use .net membership to identify s/he, user identity. Then you can set links to false and make them visible if admin logs in.
Oct 8 '08 #2

Frinavale
Expert Mod 5K+
P: 9,731
Or you could create different master pages for each group of users if the content is sensitive.
Oct 8 '08 #3

P: 12
Or you could create different master pages for each group of users if the content is sensitive.
I want to use only single master page for all the users.
Oct 10 '08 #4

Frinavale
Expert Mod 5K+
P: 9,731
I want to use only single master page for all the users.
Then in the master page code you will have to check the current user and determine what controls should be made available to them.
Oct 10 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.