日期:2014-05-18  浏览次数:20404 次

关于asp.net“<”变成“&lt;”的问题
如题,下面是aspx文件的代码
HTML code

<meta name="keywords" content="<%=kk.GetShop().WebKey %>" />



而在页面右键查看源代码则变成下面这样:

HTML code

<meta name="keywords" content="@&lt;%=kk.GetShop().WebKey %>" />



何解

------解决方案--------------------
<meta name="keywords" content=<%=kk.GetShop().WebKey %> />


<meta name="keywords" content='<%=kk.GetShop().WebKey %>' />

------解决方案--------------------
<head id="Head1" runat="server">
有这个吗?
我VS2010测试都没有问题