Hello all,
I am beginner in MVC .net im using vs -15 , my question is
I have a login page with username and pwd, when I click on login button internally SP will run and check where the details is valid or not if valid then check its role whether its ADMIN or USER, if admin then show admin layout and vice varsa....please help


Ram NunnaRank #8,962 · 213 reputationPosted Oct 25, 2017, 11:33 PM EDT
Ankit SharmaRank #141 · 16.1K reputationPosted Oct 25, 2017, 11:48 PM EDT
Swapnil Bhandurge38 reputationPosted Oct 26, 2017, 3:48 AM EDT
Step 1. after debug show first page i.e. login
Step 2. If username and pwd is valid in database then check user role weather its USER or ADMIN (I’m showing screenshot of my DB table for i.e., Tab_LOGIN)
Step 3. If user type is Admin show AdninLayout i.e. HELLO ADMIN.cshtml
Step 4. And If user type is User show UserLayout ie. . HELLO USER.cshtml
Ram NunnaRank #8,962 · 213 reputationPosted Oct 26, 2017, 3:58 AM EDT