skip to Main Content

I have footer section added in the site.master (aspx) page so all my aspx pages will have the same footer.
However, my site contains some html pages as well. I have to manually copy the html/bootstrap code from the footer section and paste it in all the html pages. Whenever I make a small change to the footer, i have to repeat the same across all HTML pages. Is there a way to simplify this process instead of having to do this manually

THank you

2

Answers


  1. You can create footer.html and use iframe in your main html pages; as well as in your master page. For every modification you will need to modify footer.html

    <body>
         Content.
         <iframe src="footer.html"></iframe>
    </body>
    
    Login or Signup to reply.
  2. You can use footerContent

    <div id="footerContent" style="text-align:center">
         <b>Powered by ASP.NET! </b>
    </div>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search