Search code examples
c#htmlasp.net-mvcrazorpage-title

My ASP.NET Application - Drives me crazy, can't remove it


So I edited:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        #AboutMeSection {
            border-right: 1px dashed #333;
                min-height:100px;
                height:100px;
        }

    </style>
    <title>@ViewBag.Title - Adam Kościelniak</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("//tinymce.cachefly.net/4.0/tinymce.min.js")
    <script>
    tinymce.init({ selector: 'textarea' });
    </script>

</head>

of _Layout.cshtml

in the view I simply do:

@model KoscielniakInfo.ViewModels.CV
@{
    ViewBag.Title = "My Virtual CV";
}

Even changed the _ViewStart.cshtml so it explicitly changes it:

@{
    ViewBag.Title = "Adam Kościelniak Homepage";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

NOTHING still after a 10 deploys I go to my domain: adamkoscielniak.pl and see this: Screenshot

Where else can I change this? What am I missing? The full project is on github... https://github.com/Tackgnol/KoscielniakInfo

Web Deploy Screenshot: enter image description here


Solution

  • This is in your layout template. From the top of the solution, look into the folder Views > Shared > _Layout.cshtml

    In the header lines

    <title>@ViewBag.Title - My ASP.NET Application</title>
    

    If you every run into something like this that you cannot find then you can also do ctrl + F to open up the search panel and search for the characters through the entire solution to locate where they are.

    Edit: Just read you were modifying the _layout file. Just do the ctrl + f and search for the string solution wide.

    Edit: Just downloaded your solution and that line is literally nowhere. Make sure you are deleting all the current files in the directory when you deploy the new code. Just manually delete and redeploy the first time then change your settings to remove all files on deploy after that. Also do a ctrl f5 to make sure your browser isnt caching the header info once you redeploy.