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

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

    You can do this by using content regions in the head, in exactly the same way as you would in the body of the page. eg, In your masterpage:

    
        
        
        
    
    

    And then in the page itself just something like:

        
        
        
        
        
    
    

提交回复
热议问题