日期:2014-05-17  浏览次数:20424 次

ASP.NET修改网页描述和关键词,标题,该如何从后台操作?
ASP.NET修改网页描述和关键词,标题,该如何从后台操作?vs2008 c# 有母模板

Asp.Net动态设置网页标题、关键字、描述 怎么做。
不要用xml,

------解决方案--------------------
http://www.cnblogs.com/dyc988/archive/2008/11/23/1339574.html
------解决方案--------------------
C# code

public string _strTitle="<title>我的标题,亲</title>";
public string _strMeta="name='"Keywords"' content='""' ";

------解决方案--------------------
好像不错。

探讨

C# code

public string _strTitle="<title>我的标题,亲</title>";
public string _strMeta="name='"Keywords"' content='""' ";


页面
HTML code

<%= _strTitle%>
<%= _strMeta%>



同理,想加几个加几个,你也可以把这两个合起来写