locked
Simple question about Visual Studio Web Sites RRS feed

  • Question

  • User1086504997 posted

    Whenever I start a web site project in VS2013 using the ASP.NET Web Site (Razor v3) template, it always has "© 2014 - My ASP.NET Web Page" displayed at the bottom of the pages.  Is there a way to remove or change it?  I tried searching the files in the project and couldn't seem to find it anywhere.

    Monday, August 11, 2014 4:24 PM

Answers

  • User-821857111 posted

    You'll find it in the _SiteLayout file in the footer section. The year is dynamically generated:

            <footer>
                <div class="content-wrapper">
                    <div class="float-left">
                        <p>&copy; @DateTime.Now.Year - My ASP.NET Web Page</p> <---- here it is
                    </div>
                </div>
            </footer>
            @RenderSection("Scripts", required: false)
        </body>
    </html>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 11, 2014 4:49 PM

All replies

  • User-821857111 posted

    You'll find it in the _SiteLayout file in the footer section. The year is dynamically generated:

            <footer>
                <div class="content-wrapper">
                    <div class="float-left">
                        <p>&copy; @DateTime.Now.Year - My ASP.NET Web Page</p> <---- here it is
                    </div>
                </div>
            </footer>
            @RenderSection("Scripts", required: false)
        </body>
    </html>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 11, 2014 4:49 PM
  • User1086504997 posted

    Thanks.  It never occurred to me they would be using code to get the current year.  That would explain why searching didn't find it.

    Monday, August 11, 2014 4:57 PM