Yetanotherforum 编辑表情后不立即更新

文件  FormatMsg.cs

方法iAddSmiles内

Code:
strTemp = strTemp.Replace(code.ToLower(),String.Format("<img src=\"{0}\" alt=\"{1}\" />",basePage.Smiley(Convert.ToString(row["Icon"])),basePage.Server.HtmlEncode(row["Emoticon"].ToString())));
调用了两次可能导致被转化成html后有乱码出现

在方法GetSmilies内
Code:
System.Web.HttpContext.Current.Cache.Insert("Smilies",dt,null,DateTime.Now.AddMinutes(60),TimeSpan.Zero);
加入缓存项的Key和更新/删除时移除缓存的Key不一致 导致编辑表情后不立即更新
DB.cs
Code:
System.Web.HttpContext.Current.Cache.Remove("Smiles");

posted on 2006-04-11 17:38  活靶子.Net  阅读(1218)  评论(2编辑  收藏  举报

导航