<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="&lt;%=keywords%>" /><meta name="Description" content="&lt;%=keywords%>" /></head>求高手指点

解决方案 »

  1.   

    你把这一串<meta name="keywords" content="<%=keywords%>" />
     <meta name="Description" content="<%=keywords%>" />也写在后台,从后台读取吧 keywords="<meta name="keywords" content="+BLL.Global_BLL.Global(3)[0].keyword_seo+">
    前台直接这样写
    <%=keywords%> 
      

  2.   

    前台这两个keyword=<meta name="keywords" content="" />
     description=<meta name="Description" content="" />都在后台写成string,前台在相应位置直接输出
    <%=keyword%>
    <%=description %>
      

  3.   

    后台:public string 变量
    前台: <% =变量%>