Пример #1
0
        void context_PostResolveRequestCache(object sender, EventArgs e)
        {
            // TODO: document this, provide workaround for < .NET SP2?
            HttpContext context = HttpContext.Current;

            if (context.Request.Path.IndexOf("SlickUpload.axd", StringComparison.InvariantCultureIgnoreCase) != -1)
            {
                TryRemapHandler(context, SlickUploadHandlerFactory.GetHandler(context));
            }
        }
Пример #2
0
 private void TryRemapHandler(HttpContext context, IHttpHandler iHttpHandler)
 {
     try
     {
         context.RemapHandler(SlickUploadHandlerFactory.GetHandler(context));
     }
     catch
     {
         // TODO: error somewhere?
     }
 }