asp.net mvc - invalid expression terms in the layout page -
i tried change several times file thing accomplishing every time add more invalid expressions
i not able see why have 6 invalid expression terms ';' in following code?
this _layout.cshtml
:
<!doctype html> <html> <head> <title>@viewbag.title - moran</title> <meta charset="utf-8" /> <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> <link rel="stylesheet" href="~/lib/bootswatch/yeti/bootstrap.min.css" /> <link rel="stylesheet" href="~/lib/font-awesome/css/font-awesome.min.css" /> <link rel="stylesheet" href="~/css/site.css" /> </head> <body> <nav class="navbar navbar-default"></nav> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header "> @if (user.identity.isauthenticated) { <span id="username">@user.identity.name</span> } <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> @html.actionlink("moran", "index", "home", new { area = "" }, new { @class = "navbar-brand" }) </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="active"><a asp-controller="app" asp-action="index">home</a></li> <li><a asp-controller="app" asp-action="contactus">contact us</a></li> <li><a asp-controller="app" asp-action="about">about</a></li> <li><a asp-controller="app" asp-action="galery">galery</a></li> <li><a asp-controller="app" asp-action="trips">trips</a></li> @if (user.identity.isauthenticated) { <li><a asp-controller="auth" asp-action="logout">logout</a></li> } </ul> </div> </div> </div> <div id="main" class="container-fluid"> <div> @renderbody() </div> </div> <div id="footer" class="container-fluid"> <div class="navbar navbar-inverse navbar-fixed-bottom"> <p class="text-center text-danger">© @datetime.now.year - moran ribadeo s.l.</p> </div> </div> <script type="text/javascript" src="~/lib/jquery/dist/jquery.min.js"></script> <script type="text/javascript" src="~/lib/bootstrap/dist/js/bootstrap.min.js"></script> <environment names="development"> <script type="text/javascript" src="~/jscript/site.js"></script> </environment> <environment names="production,staging"> <script type="text/javascript" src="~/lib/_app/site.js"></script> </environment> @rendersection("scripts", false) </body> </html>
could advise?
@model ienumerable<moran.models.trip> @{ viewbag.title = "home page"; } <div class="row"> <div class="col-md-6"> <h1>welcome</h1> <p>this welcome page</p> <a asp-controller="app" asp-action="trips" class="btn btn-lg btn-success">view trips</a> </div> </div>
Comments
Post a Comment