日期:2014-05-17 浏览次数:20525 次
public static string KeyWords = "关键字搜索1"; public static string GetKeywords() { return "关键字搜索2"; }
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>无标题页</title> <meta name="Keywords" content="<%=Common.KeyWords %>" /> <meta name="Keywords" content="<%=Common.GetKeywords() %>"/> <%=Common.GetKeywords() %> </head> <body> <form id="form1" runat="server"> <div> <input type=text value="<%=Common.GetKeywords() %>" /> </div> </form> </body> </html>
<html xmlns="http://www.w3.org/1999/xhtml"> <head><title> 无标题页 </title> <meta name="Keywords" content="<%=Common.KeyWords %>" /> <meta name="Keywords" content="<%=Common.GetKeywords() %>" /> 关键字搜索2</head> <body> <form name="form1" method="post" action="Default.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTU2MDczNTY3OWRkZRXjlQE4H+Z+b5Sk3LxPiqE0viA=" /> </div> <div> <input type=text value="关键字搜索2" /> </div> </form> </body> </html>