How to add meta tag to ASP.Net content page

前端 未结 6 1450
后悔当初
后悔当初 2020-12-08 05:01

I have several content pages hanging off of one master page. I need to add a refresh meta tag to one of the content pages but I can\'t see where I can do this.

Any

6条回答
  •  生来不讨喜
    2020-12-08 05:24

    Have not tried this with refresh, but in general you can add a meta tag like this:

       var keywords = new HtmlMeta { Name = "keywords", Content = "one,two,three" };
                    Header.Controls.Add(keywords);
    

    update: it is possible this way. Check Rick Strahl http://www.west-wind.com/weblog/posts/2006/Aug/04/No-more-Meta-Refresh-Tags

提交回复
热议问题