zoukankan      html  css  js  c++  java
  • asp:Content ID=Content1 ContentPlaceHolderID=ContentPlaceHolder3Runat=Server/asp:Content是什么?

    这是内容页里的代码。它使用了母版页.master。在母版页里使用了

       <asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server">
      </asp:ContentPlaceHolder>

    进行了占位,在这里添加内容页里比母版页多出的部分。内容页里的<asp:content runat="server" ...>中的ContentPlaceHolderID属性的值必需是母版页里的ContentPlaceHolderID的属性值的任何一个。比如你定义了母板页MasterPage.master,那么内容页里的是<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="mystest2.aspx.cs" Inherits="mystest2" Title="无标题页" %>

  • 相关阅读:
    MySQL多表查询
    多表关联
    MySQL数据类型 约束
    初识数据库
    socker server和 event
    os 模块 和 os模块下的path模块
    sys 模块
    time 模块
    目录规范

  • 原文地址:https://www.cnblogs.com/gates/p/3110291.html
Copyright © 2011-2022 走看看