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

前端 未结 4 844
闹比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:49

    I haven't tried this.
    But you can put HEAD element inside html with the enclosed string in asp style markup.

    e.g. <%=myTitle%>

提交回复
热议问题