首页 新闻 会员 周边

后台生成的url字符串里的<怎么被编码了,如何正常使用,asp.net mvc3视图代码

0
悬赏园豆:30 [已解决问题] 解决于 2013-09-14 22:14

      foreach (var product in item.ProductCollections)
        {
            sb.AppendFormat(" <a href=\"{0}\" target=\"_blank\" >{1}</a>x{2},"
                , "?productid=" + product.ProductId
                , product.Title, product.Count);
        }

 &lt;a href=&quot;?productid=1& amp;quot; target=&quot;_blank&quot; &gt;新疆最好吃切糕水果拼盘&lt; /a&gt;x1, &lt;a href=&quot;?productid=2&quot; target=& amp;quot;_blank&quot; &gt;阿富汗铁西瓜2&lt;/a&gt;x2;

这样一来,

江小花儿的主页 江小花儿 | 初学一级 | 园豆:14
提问于:2013-09-14 21:36
< >
分享
最佳答案
0

@html.raw()

收获园豆:30
Kingler | 初学一级 |园豆:146 | 2013-09-14 21:43
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册