Hi sir,
Tell me the difference between modelstate.addmodelerror with or without key in mvc.
@Html.ValidationMessageFor(m=>m.username)
ModelState.AddModelError("username","Username cannot be empty")
ModelState.AddModelError("","Username cannot be empty")
With regards,
J.Prabu.
[Email:prbspark@gmail.com]