<head runat="server">
<title>
<%=f_title %></title>
<meta name="keywords" content="<%=f_keywords %>" />
<meta name="description" content="<%=f_desc %>" />
</head>
运行结果<head><title>
123456
</title>
<meta name="keywords" content="<%=f_keywords %>" /><meta name="description" content="<%=f_desc %>" />
后台代码public string f_title; public string f_keywords; public string f_desc;这三个都能取到值
没碰见过,查资料,没找到,咋回事呢
改成
content='<%=f_keywords %>'
试试
子类访问父类 的最低访问级别为protected的,访问public的自然更不是问题了,你改成private就要抛黄页了
<meta name="keywords" content="<%=f_keywords %>" /><meta name="description" content="<%=f_desc %>" />
LZ。<head runat="server">
==>
<head>