ASP.NET 图像缓存问题(如何禁用它?) .IE 浏览器从目录 C:\Documents and Settings...\Local Settings\Temporary Internet Files 加载旧图像
protected void Page_Load(object sender, EventArgs e)
{
MembershipUser user = Membership.GetUser();
imCropped.ImageUrl = (File.Exists(Server.MapPath("..") + @"\Users\" + user.ProviderUserKey.ToString() + @"\" + user.ProviderUserKey.ToString() + ".gif"))? "~/Users/" + user.ProviderUserKey.ToString() + "/" + user.ProviderUserKey.ToString() + ".gif" : "~/Images/thumb.gif";
}
protected void ButtonJcrop_Click(object sender, EventArgs e)
{
...
String mapPath = @"\Users\" + user.ProviderUserKey.ToString() + @"\" + user.ProviderUserKey.ToString() + ".gif";
bmpCropped.Save(Server.MapPath("..") + mapPath);
imCropped.ImageUrl = Request.ApplicationPath + mapPath;
...
}