login form with drop-down admin and user in MVC
Hello guys .
I have two tables in SQL which is admin and user.
and I have created a login form where as a drop-down list and 2 text box should be one text box user name and sec password. and above drop-down list.
I want when I select admin in drop-down list and enter in textbox admin user id and password and if the correct admin username and password we have in database then login successfully otherwise No.
same as if I select user in drop-down and enter in textbox username and password and if the correct username and password we have in database then login successful otherwise no.
please tell me this code for make this website
Santhakumar MunuswamyPosted Jul 16, 2020, 9:58 PM
Rehan HaquePosted Jul 17, 2020, 9:11 AM
Jenith ThakkarPosted Jul 16, 2020, 11:05 PM
Please have a look this link
https://www.c-sharpcorner.com/article/writing-a-sample-login-page-in-asp-net-mvc/
just add one more field of dropdown frontend side and backend side to validate
other code will be same
Thank you