Solved

Master page

Posted on 2011-02-11
2
253 Views
Last Modified: 2012-08-14
I have three master pages name main.master, account.master and hr.master in asp.net 4 web project. How can load account and hr master pages asp users roles. if loggedin user's role is account then I have want to load account.master.

pls. help

yaha
0
Comment
Question by:ayha1999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
SAMIR BHOGAYTA earned 250 total points
ID: 34870409
Hi, you have to change the MasterPageFile="MasterPageFile" at runtime. When account user is logged in at that time you have to set the MasterPageFile="account.Master" like this in every page you have to change the MasterPageFile Name changed as you like.
0
 
LVL 7

Author Comment

by:ayha1999
ID: 34871854
Could u pls give me sample?

ayha
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question