Using Validation summary u can achieve.
Example:
Add this line in your view ( <%= Html.ValidationSummary(true)%>)
( <%= Html.ValidationSummary(true)%>)
From controller pass exception to
catch (Exception ex) { ModelState.AddModelError("error", ex.Message); }
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?