首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

linq 自动把小弟我的"<"符号给转成"&lt;"了

2012-01-08 
linq 自动把我的符号给转成了select new{UserId u.UserId,jobid u.jobid,department u.depart

linq 自动把我的"<"符号给转成"&lt;"了
select new
  {
  UserId = u.UserId,
  jobid = u.jobid,
  department = u.department,
  job = u.job,
  click = u.click,
  updatedate = u.updatedate,
  sate = bsate(u.sate.ToString())
   

  }; 
public string bsate(string s)
  {
  switch (s)
  {
  case "1":
  return "<font color=#808080>正常</font>";
  case "0":
  return "<font color=#808080>屏蔽</font>";
  default:
  return "<font color=#003399>正常</font>";
  }
  }
linq 自动把我的"<"符号给转成"& l t ;"了

这种情况怎么办?

[解决办法]
这个和linq有什么关系。

一定是你哪里使用htmlencode了。

热点排行