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).
Custom Roles and membership providers
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Feb 25, 2015, 1:43 AM EST
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]