如何元标记添加到ASP.Net内容页 [英] How to add meta tag to ASP.Net content page

查看:144
本文介绍了如何元标记添加到ASP.Net内容页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个内容页挂一个主的页面。我需要一个刷新meta标签添加到内容的网页之一,但我看不出在那里我可以做到这一点。

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.

任何帮助将是非常美联社preciated。

Any help would be much appreciated.

推荐答案

还没有和刷新尝试这样做,但一般可以加元标记是这样的:

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);

更新:可以这样。检查里克施特拉尔
<一href=\"http://www.west-wind.com/weblog/posts/2006/Aug/04/No-more-Meta-Refresh-Tags\">http://www.west-wind.com/weblog/posts/2006/Aug/04/No-more-Meta-Refresh-Tags

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

这篇关于如何元标记添加到ASP.Net内容页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆