user3661087
user3661087

Reputation: 1

ModelState Error is not getting removed after refresh the page

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

Answers (1)

Anthony Shaw
Anthony Shaw

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

Related Questions