解决方案 »
- 关于.net页面静态化的问题,csdn页面貌似就是做成静态的html页面,如何解决每次都会产生新html文件和刷新页面数据不更新问题??
- VS2005中platform 在哪里有?在线等
- c盘多了个文件ip.txt 中毒了?
- 望大虾们贴出自己常用的共公基类供小弟学习。
- 我的网站访问速度为什么这么慢呢?
- 我的XP为什么用不了WebMatrix(急,在线等)
- 一个简单的DATAGRID问题
- 用过EnterpriseLibrary2.0的朋友进来评评理
- ASP.NET中请问怎么实现跨域。
- Excel 上传数据只能上传32行
- 怎样避免提交表单后,刷新页面造成的重复提交
- 窗体程序向某个网页传值,并获取结果到此窗体程序中
{
case "icon":
if (!typeValue.EndsWith(".png") && !typeValue.EndsWith(".gif"))
{
typeValue = IconHelper.GetName((Icon)Enum.Parse(typeof(Icon), typeValue));
}
//resName += "res.icon." + typeValue;
string serverPath = String.Format("{0}/{1}", GlobalConfig.GetIconBasePath(), typeValue);
context.Response.WriteFile(context.Server.MapPath(serverPath)); context.Response.ContentType = "image/" + GetImageFormat(typeValue);
break;
case "js":
case "lang":
context.Response.Write(ResourceHelper.GetResourceContent(resName));
context.Response.ContentType = "text/javascript";
break;
case "css":
context.Response.Write(ResourceHelper.GetResourceContent(resName));
context.Response.ContentType = "text/css";
break;
case "theme":
case "img":
binary = ResourceHelper.GetResourceContentAsBinary(resName);
context.Response.OutputStream.Write(binary, 0, binary.Length);
//context.Response.Write(ResourceHelper.GetResourceContent(resName));
context.Response.ContentType = "image/" + GetImageFormat(resName);
break;
}
context.Response.ContentType 是重点