Error message gets displayed outside Main Layout Content
Jagjit Saini
106
Reputation points
Hi
Problem is like below image Link attached. Error message gets displayed outside Main Layout content.
Below is the ViewStart
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
Error - Index
@{
Layout = null;
}
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Error</title>
</head>
<body>
<h3>Unexpected error! Please contact the Administrator.</h3>
</body>
</html>
Thanks
Sign in to answer