The effect of making footer by using master asp.net

Time:2021-10-8

This paper shares the specific process of making footer with asp.net master for your reference. The specific contents are as follows

1. The master creation process is omitted.

2. Create a master page CSS: site.css


body {
}
.linkButton{
 text-decoration:none;
 color:whitesmoke;
} 

3. Add footer to master page.

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <title></title>
 <asp:ContentPlaceHolder ID="head" runat="server">
 </asp:ContentPlaceHolder>
   <!--  Reference the specified CSS file -- >
 <link href="Css/Site.css" rel="external nofollow" rel="stylesheet" type="text/css"/>
</head>
<body>
 <form runat="server">
 <div>
  <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
  
  </asp:ContentPlaceHolder>
 </div>
 <hr />
 <!--  Footer label: footer -- >
 <footer>
  <div style="background-color: #2A3A56; line-height: 100px; text-decoration:none">

   <div style="text-align:center" >
    < ASP: hyperlink id = "aboutus" text = "about us" | "runat =" server "/ >
    < ASP: hyperlink id = "connectus" text = "contact us" | "runat =" server "/ >
    < ASP: hyperlink id = "statement1" text = "website statement |" navigateurl = "~ / admin / statement. ASPX" runat = "server" / >
    < ASP: hyperlink id = "statement2" text = "legal statement" navigateurl = "~ / admin / statement. ASPX" runat = "server" / >
   </div>
  </div>

 </footer>
  
 </form>
</body>
</html>

4. Create default.aspx page and hyperlink related connection interface.

5. The test results are as follows.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support developpaer.