i have two role exist in my work. one is ADMIN, other is user.
if role is admin then admin home is display. same as user.
if any one enter url of the admin or user with out checking credentials then open login page (redirect login page).
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish Kumar ChoudharyPosted Feb 25, 2015, 6:43 AM
Go through following links it will help you
http://www.codeproject.com/Articles/165159/Custom-Membership-Providers
http://weblogs.asp.net/jongalloway/simplemembership-membership-providers-universal-providers-and-the-new-asp-net-4-5-web-forms-and-asp-net-mvc-4-templates]