ASP.NET masterpages: how to insert markup in the head section inside the aspx?

前端 未结 4 817
闹比i
闹比i 2020-12-19 05:56

I know I can access the head section of a page which uses a masterpage programmatically this way (in code behind):

This is only an example (I\'d like to ins

4条回答
  •  独厮守ぢ
    2020-12-19 06:33

    You can declare the page title in the content page declaration.

    <%@ Title="Page Title" Page Language="C#" AutoEventWireup="true" CodeFile="Subpage.aspx.cs" Inherits="Subpage" MasterPageFile="~/MasterPage.master" %>
    

提交回复
热议问题