Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6606067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:21:23+00:00 2026-05-25T19:21:23+00:00

Looking at my web app, when it is all compiled and ready to be

  • 0

Looking at my web app, when it is all compiled and ready to be deployed, the folder I have has a bunch of .ASPX and .ASHX files. The ASHX files are of course some custom handlers I made for very specific instances where they could be image handlers or a something else where I didnt want a whole Page class life cycle.

I noticed that .ASPX files have all the HTML content (all the tags) and the .aspx.cs files are compiled into .DLL files (as expected) which is just loaded up into IIS. That is great.

But I also saw that the .ASHX files are just the way they are. All the code is in my .ASHX file and that is the exact same file in the folder deployed to my server. No compiled DLL or anything.

So the question is this: Do the .ASHX files execute slower because it is somewhat of an interpreted file? I know I am probably wrong but there is nothing compiled it seems for .ASHX files and I originally used them for speed. Or is the code compiled once into memory by IIS and kept there for later use? Or is that maybe what the IsReusable bool is property is for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:21:24+00:00Added an answer on May 25, 2026 at 7:21 pm

    They’re compiled, so performance won’t be an issue.

    It is, however, possible to use a code-behind for .ashx files in the same way as .aspx files and suchlike. In your .ashx file:

    <%@ WebHandler 
        Language="C#" 
        CodeBehind="UserImageHandler.ashx.cs"   
        Class="Namespace.UserImageHandler" %>
    

    and then in a code-behind:

    using System;
    using System.Web;
    // more here if you need them...
    
    namespace Namespace
    {    
        public class UserImageHandler : IHttpHandler
        {
            public void ProcessRequest(HttpContext context)
            {
               // etc. etc.    
            }
    
            public bool IsReusable
            {
                get
                {
                    return false;
                }
            }    
        }
    }
    

    Doing it this way instead of inline can make life easier if you have lots of code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been creating a web app and am looking to expand. In my
I have to create a pluggable web app at work and I was looking
I have been looking at the feasibility of porting over an intranet web app
I have a web app which performs a character encoding conversion on .ssa files
I'm looking to deploy a web app and I have a simple question about
Imagine you're writing a web app that will have 1 million users (they all
We have, like everyone else, forms all over our web app. So far we've
I'm looking at restructuring an old Web Application. I have extracted out all Java
My web app is going to call a webservice. I'm looking for best practices
I'm looking at building a simple web app that will expose an API that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.