Reputation: 1
I am using a general login view. Say, I entered invalid credentials, model is returned with error from controller. When I try to refresh page its not refreshing View.
Upvotes: 0
Views: 153
Reputation: 8166
Are you doing a refresh or a full page reload?
My guess is you're refreshing which is re-posting the form and values which would cause the same ModelState errors to be present.
Try visiting the page again by copy and pasting the url back into the browser or navigating away from your login page and revisiting
Upvotes: 2