Solved

Master page

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

12 Experts available now in Live!

Get 1:1 Help Now