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 NunnaPosted Oct 26, 2017, 7:58 AM
Swapnil BhandurgePosted Oct 26, 2017, 7:48 AM
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
Ankit SharmaPosted Oct 26, 2017, 3:48 AM
Ram NunnaPosted Oct 26, 2017, 3:33 AM