I try to do left-side bar but all time i get error "[HttpException (0x80004005):Detected a potentially dangerous value Request.Path coming from the customer". What is wrong with that?
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="~/Content/bootstrap.css" rel="stylesheet" /> <link href="~/Content/bootstrap-theme.css" rel="stylesheet" /> <link type="text/css" rel="stylesheet" href="~/Content/bootstrap.css" /> <title>@ViewBag.Title</title> </head> <body> <div class="navbar navbar-inverse" role="navigation"> <a class="navbar-brand" href="@ Url.Action("List","Person")">Aplikacja</a> </div> <div class="row"> <div class="col-xs-2"> <ul class="nav nav-pills nav-stacked span3"> <li><a href="@Html.ActionLink("Przyklad1", "Navigator")">Przyklad </a></li> </ul> </div> <div class="col-xs-8"> @RenderBody() </div> </div> </body> </html>
@andUrl... remove it. It should be@Url.Action(...)@Html.ActionLink("Przyklad1", "Navigator")Not<a href="@Html.ActionLink...You dont need to put Actionlink in an anchor tag.