Solved

Master page

Posted on 2011-02-11
2
248 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 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now