-
asp:Content 템플릿 역활개발 2023. 3. 27. 13:54728x90
1. 코딩하는 페이지
<%@ Page Language="C#" Title="" MasterPageFile="/Page.Master" %> <asp:Content ID="header" ContentPlaceHolderID="HeadContent" runat="server"> <meta charset = utf-8"> <title></title> <script src="/Scripts/jquery-3.1.1.min.js"></script> </asp:Content> <asp:Content ID="Contents" ContentPlaceHolderID="MainContent" runat="server"> Body </asp:ContentPlaceHolder> <asp:Content ID="Contents" ContentPlaceHolderID="FooterContent" runat="server"> Footer </asp:ContentPlaceHolder>
2. 마스터 페이지(템플릿)
<!doctype html> <html lang="ko"> <head> <asp:ContentPlaceHolder ID="HeadContent" runat="server"> </asp:ContentPlaceHolder> </head> <body> <asp:ContentPlaceHolder ID="MainContent" runat="server"> </asp:ContentPlaceHolder> <asp:ContentPlaceHolder ID="FooterContent" runat="server"> </asp:ContentPlaceHolder> </body> </html>
'개발' 카테고리의 다른 글
[그누보드5]게시판에서 다크모드 사용하기(view.skin.php) (0) 2023.04.14 [오류해결] Uncaught ReferenceError: require is not defined at renderer.js (0) 2023.03.31 Swift 문자열 포함여부 확인 (0) 2023.03.22 카페24 그누보드5 메일전송 오류 (1) 2023.03.21 SECTIGO SSL 작업 (0) 2023.02.21