Skip to content
Loading
Login and Registration issue in asp.net mvc??
 and assign usertype as user in your Regis post method
  1. public ActionResult Regis(stanstud studs)  
  2. {  
  3.     studs.usertype = "User";  
  4.     context.studs.Add(studs);  
  5.     context.SaveChanges();  
  6.     return View();  

  • Salman Beg
    Probably you are getting some error. Put debugger and check. Thanks.
  • @Ahmed Abdi can u suggest what is miss my programme ?? my login if a condition not work ?? as well as registration is not work i m using one table for login and registration
  • Ahmed Abdi
    Why not use asp.net identity instead of hard coding
  • Sanwar Ranwa
    Hi Rahul 
     
    check the folllowing article
     
    http://www.dotnetawesome.com/2017/04/complete-login-registration-system-asp-mvc.html