<meta name="keywords" content="<%=keywords%>"/>
为什么直接输出
<meta name="keywords" content="<%=keywords%>" /><meta name="keywords" content="<%Response.Write(keywords)%>"/>
为什么直接输出
<meta name="keywords" content="<%Response.Write(keywords)%>" />
content="<%=keywords%>" 为什么不输出keywords 值啊. 这咋整
引号放入keywords中可以,但是有的情况不允许啊.
为什么直接输出
<meta name="keywords" content="<%=keywords%>" /><meta name="keywords" content="<%Response.Write(keywords)%>"/>
为什么直接输出
<meta name="keywords" content="<%Response.Write(keywords)%>" />
content="<%=keywords%>" 为什么不输出keywords 值啊. 这咋整
引号放入keywords中可以,但是有的情况不允许啊.
解决方案 »
- 淘宝店铺的来客提醒如何实现
- 关于用户表设计的一个疑问。
- ASP.NET比ASP好吗?
- 读取excel 每执行一次 (Excel.Range)xSheet.Cells[line,col] 则内存就增加一点
- 提两个问题!请教高手解答!!100分
- 高分请教一个问题[涉及的知识点:Javascript+XMLHTTP+ASP.NET]
- 在DataGrid中初始化控件
- 高手赐教:接收返回值错误
- 在后台程序中如何让本页面刷新一次??就相当于点击右键“刷新”的功能???
- 求帮助!
- 升级Sql数据库,但是装有VS 求教 0.0
- String s ="S1"分配了几次内存,String s="S1"+"s2"分配了几次?
就像母板也上放flash一个道理
<meta name="keywords" content='<%= GetKeyWords() %>' />
<head runat="server">
<title>无标题页</title>
<meta content="" name="keywords" id="key3"/>
<meta content="" name="description" id="des3"/>
</head>.cs中
public partial class xx : System.Web.UI.Page
{
public string keywords = "";
public string description = ""; protected void Page_Load(object sender, EventArgs e)
{
HtmlMeta keywords = (HtmlMeta)Master.FindControl("key3");
keywords.Content = "keywords";
HtmlMeta description = (HtmlMeta)Master.FindControl("des3");
description.Content = "content";
}
}