动态添加元标签

时间:2019-02-06 13:51:37

标签: asp.net-mvc

我需要动态添加添加元标记。在这种情况下,我需要使用所有标记创建xml,而不是动态添加它们。项目在MVC Framework 4.5中。请向我展示更多实用且简便的方法。

这是我在_Layout上的标签:          

<!-- for Google -->
<meta name="description" content=" " />
<meta name="keywords" content="" />
<meta http-equiv="Content-Language" content="bg">
<meta name="Email" content="" />

<meta name="Distribution" content="Global" />
<meta name="Rating" content="General" />
<meta name="geo.country" content="BG" />
<meta name="icbm" content="Internet" />
<meta name="dc.language" content="bg" />
<meta content="index, follow" name="robots" />
@*<meta property="fb:app_id" content="1122689814408764" />*@
<meta property="fb:app_id" content="1114714468553206" />
<link href="~/favicon.ico" type="image/x-icon" rel="shortcut icon" />

<meta name="DC.title" content="" />
<meta name="geo.region" content="BG-23" />
<meta name="geo.placename" content="Sofia" />
<meta name="geo.position" content="" />
<meta name="ICBM" content="" />

<meta name='subject' content=''/>
<meta name='Classification' content='Business'/>
<meta name='reply-to' content=''/>
<meta name='HandheldFriendly' content='True'/>
<meta name='MobileOptimized' content='320'/>
<meta name='url' content='http://www.avramova.lawyer'/>
<meta name='revisit-after' content='7 days'/>
<meta name='target' content='all'/>

0 个答案:

没有答案