I am studying a book on ASP.Net MVC 4. The project created by the VS environment in the book is a little different from mine because it is outdated. According to the book's instructions, I have to add a style sheet by adding a line:
<link rel="stylesheet" type="text/css" href="~/Content/Site.css" /> But having tried all the options known to me, the table remains invisible.
@model WebApplication1.Models.FirstModel @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>RsvpForm</title> <link rel="stylesheet" type="text/css" href="~/Content/Site.css" /> <link rel="stylesheet" type="text/css" href=@Href("~/Content/Site.css") /> <link rel="stylesheet" type="text/css" href=@Url.Content("~/Content/Site.css") /> </head> <body> @using (Html.BeginForm()) { @Html.ValidationSummary() <p>Your name: @Html.TextBoxFor(x => x.Name) </p> <p>Your email: @Html.TextBoxFor(x => x.Email)</p> <p>Your phone: @Html.TextBoxFor(x => x.Phone)</p> <p> Will you attend? @Html.DropDownListFor(x => x.WillAttend, new[] { new SelectListItem() {Text = "Yes, I'll be there", Value = bool.TrueString}, new SelectListItem() {Text = "No, I can't come", Value = bool.FalseString} }, "Choose an option") </p> <input type="submit" value="Submit RSVP" /> } </body> </html> This is what a browser looks like:
This is what the browser window looks like:


drag'n'dropto the page fromSolution Explorer (Обозреватель решений), the path seems to be automatically entered. If the path is the same, then it will be necessary to think, if not, then most likely it will work. - Sergey Glazirin