Rehan Haque

Rehan Haque

  • NA
  • 24
  • 2.5k

login form with drop-down admin and user in MVC

Jul 16 2020 7:49 PM
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

Answers (3)