Adding meta tag programmatically in C#

后端 未结 10 1168
渐次进展
渐次进展 2020-12-14 01:24

I\'m trying to programmatically add a . It is working fine when there is a Head element with runat = \"server\" in the

10条回答
  •  生来不讨喜
    2020-12-14 01:52

    Many thanks to Awe for the solution! I have implemented this code in a (error404.ascx) ASP.NET User Control as follows:

    <%@ Control Language="C#"%>
    
    

    With the following masterpage:

    <%@ Master Language="C#" AutoEventWireup="true" Inherits="MyMaster" %>
    
    
    
    
        
            Site title here
    
            
            
        
    
        
            ...
        
    
    

提交回复
热议问题