<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=keywords%>" />
<meta name="Description" content="<%=keywords%>" />
后置代码
public string keywords;
public string description; //网站标题
Page.Title = BLL.Global_BLL.Global(3)[0].title_seo;
//关键字
keywords= BLL.Global_BLL.Global(3)[0].keyword_seo;
//描述
description = BLL.Global_BLL.Global(3)[0].description_seo;
//版权信息
Copy = BLL.Global_BLL.Global(3)[0].copyright_seo;单页面上出现
<title>
服务项目
</title><meta name="keywords" content="<%=keywords%>" /><meta name="Description" content="<%=keywords%>" /></head>求高手指点
<meta name="Description" content="<%=keywords%>" />也写在后台,从后台读取吧 keywords="<meta name="keywords" content="+BLL.Global_BLL.Global(3)[0].keyword_seo+">
前台直接这样写
<%=keywords%>
description=<meta name="Description" content="" />都在后台写成string,前台在相应位置直接输出
<%=keyword%>
<%=description %>
前台: <% =变量%>