读书人

关于asp.net“lt;”变成“lt;”的有关问题

发布时间: 2012-04-06 12:22:24 作者: rapoo

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

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


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

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


何解

[解决办法]
<meta name="keywords" content=<%=kk.GetShop().WebKey %> />


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

[解决办法]
<head id="Head1" runat="server">
有这个吗?
我VS2010测试都没有问题

读书人网 >asp.net

热点推荐