日期:2014-05-17 浏览次数:20443 次
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Reflection;
using System.IO;
using System.Drawing.Imaging;
namespace FineUI
{
/// <summary>
/// 资源处理程序
/// </summary>
public class ResourceHandler : IHttpHandler
{
/// <summary>
/// 处理资源的请求
/// </summary>
/// <param name="context">Http请求上下文</param>
public void ProcessRequest(HttpContext context)
{
string type = String.Empty,
typeValue = String.Empty,
resName = "FineUI.";
if (!String.IsNullOrEmpty(typeValue = context.Request.QueryString["icon"]))
{
type = "icon";
}
else if (!String.IsNullOrEmpty(typeValue = context.Request.QueryString["js"]))
{
type = "js";
resName += "js." + typeValue;
}
else if (!String.IsNullOrEmpty(typeValue = context.Request.QueryString["lang"]))
{
&