ACostea ACostea - 1 month ago 8
ASP.NET (C#) Question

How do I manipulate the default header when creating an asp.net web form?

I am creating a web application using Visual Studio 2015. As per my school instructions, I am using asp.net web forms (with master page in this case).

Before I even get into the actual design and functionality of the web application, the two things I wanted to setup was a bootstrap theme/layout (which I have successfully managed) and also a site wide header and footer.

This is where I am having issues. The application has a default header (a dark bar across the top with saying "Application name" and links "Home ... About ... Contact" and login/register links on the far right. The default footer is a simple "© 2016 - My ASP.NET Application"

My question is where do I go to change these? I want to change the link names, change where the links take you to and remove the login/register links altogether.

I'm really sorry if i'm being completely stupid, I have only previously used Netbeans to write a Java application, meaning this is my first time using C#, ASP.NET and Visual Studio.

Answer

Layout information is usually in a master page in a Web Forms project. By default with a new Web Forms site created with Visual Studio 2013 or 2015, this file is Site.Master.

image showing Visual Studio default Web Forms template