Site.Master 內更改 |
<div id="footer"> <asp:ContentPlaceHolder ID="FooterContent" runat="server" /> </div> |
Index.aspx 內增加 |
<asp:Content ID="index" ContentPlaceHolderID="FooterContent" runat="server"> <h2><%=Html.Encode(ViewData("FooterMessage"))%></h2> </asp:Content> |
HomeController.vb 內更改 |
Function Index() As ActionResult …… ViewData("FooterMessage") = "Copyright © 2000-2011 testing.com. All rights reserved" …… End Function |