I tried looking on other examples of people like this one: example. But It's still not working.
My class looks like this:
[Required]
public string UserName { get; set; }
[Required]
public string Password { get; set; }
Controller:
public ActionResult Login(string UserName, string password)
{
return View();
}
My View is based on the class.. but still it lets me press the submit button even though nothing is typed in.
Help?