?
Solved

Master page

Posted on 2011-02-11
2
Medium Priority
?
257 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
2 Comments
 
LVL 11

Accepted Solution

by:
SAMIR BHOGAYTA earned 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Integration Management Part 2
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

829 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