Hello Friends, In this tutorial we are going to understand HTTPHandler in ASP.NET.  ASP.NET handles all the HTTP requests coming from the user and respond to that request. ASP.NET framework also capable of how to process requests based on extension, for example, It can handle request for .aspx, .ascx and .txt files, etc

After completing this tutorial you will be able to understand:

  • HTTPHandler in ASP.NET.

What is HTTPHandler in ASP.NET?

HTTPHandlers is a class that implements IHTTPHandler interface. It is used to handle HTTP requests based on extension, for example, it can handle requests for .aspx, ascx and .txt files etc.
It is an extension based processor that processes the request based on the file extension. When a request comes from the browser HTTP Handler checks the extension to see if it can handle the request and respond to request after performing some predefined functionality.


Following are the methods of HTTP Handler.

ProcessRequest: Used to call Http Requests.

IsReusable: To check the reusability of the same instance handler with a new request of the same type.

Implementing the HTTPHandler:

public class yourhandler :IHttpHandler
public bool IsReusable
get { return false; }

public void ProcessRequest(HttpContext context)


Configuring HTTPHandler:

.Net provodes <httpHandlers> and <add> nodes for adding HTTPhandlers to our Web applications. In fact the handlers are listed with <add> nodes in between <httpHandlers> and </httpHandlers> nodes. Here is the example for registering HTTPHandler to our web application.

<add verb="supported http verbs" path="path" type="namespace.classname, assemblyname" />

Example of HTTP Handler:

public class CspxHandler :IHttpHandler
public bool IsReusable
get { return false; }

public void ProcessRequest(HttpContext context)
context.Response.ContentType = "text/plain";

if (context.Request.RawUrl.Contains(".cspx"))
string newUrl = context.Request.RawUrl.Replace(".cspx", ".aspx");

Registering HTTPHandler in web.config:

<add verb="*" path="*.cspx" type="CspxHandler"/>

View More:


Hope you understand why we use HTTPHandler in ASP.NET. Your Feedback, comments and suggests are always welcome to me.

Thank You.


  • Have you ever considered about adding a little bit more than just your articles? I mean, what you say is fundamental and all. But just imagine if you added some great visuals or video clips to give your posts more, “pop”! Your content is excellent but with images and video clips, this blog could certainly be one of the best in its niche. Excellent blog!

  • This design is wicked! You obviously know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!

  • You actually make it appear so easy together with your presentation but I in finding this topic to be really one thing that I think I’d never understand. It sort of feels too complicated and very vast for me. I am looking forward on your next publish, I’ll attempt to get the grasp of it!|

  • You can certainly see your enthusiasm in the paintings you write. The sector hopes for more passionate writers such as you who aren’t afraid to say how they believe. At all times go after your heart.

  • Hello there, simply became aware of your weblog through Google, and located that it is truly informative. I am going to be careful for brussels. I’ll appreciate if you happen to proceed this in future. Numerous people will probably be benefited from your writing. Cheers!

  • wonderful post, very informative. I wonder why the other specialists of this sector do not notice this. You should continue your writing. I am sure, you have a huge readers’ base already!

  • Nice read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch!

  • What i do not realize is actually how you’re not really much more well-liked than you may be now. You are very intelligent. You realize therefore significantly relating to this subject, produced me personally consider it from so many varied angles. Its like women and men aren’t fascinated unless it is one thing to accomplish with Lady gaga! Your own stuffs great. Always maintain it up!

  • I appreciate, result in I found exactly what I was looking for. You’ve ended my four day long hunt! God Bless you man. Have a great day. Bye

  • After study a number of of the blog posts in your website now, and I really like your means of blogging. I bookmarked it to my bookmark website record and might be checking back soon. Pls check out my web site as nicely and let me know what you think.

  • Thanks a bunch for sharing this with all of us you really know what you’re talking about! Bookmarked. Kindly also visit my site =). We could have a link exchange arrangement between us!

  • Wow, superb blog layout! How lengthy have you ever been blogging for? you made running a blog look easy. The overall look of your web site is excellent, let alone the content material!

  • I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored subject matter stylish. nonetheless, you command get got an shakiness over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this increase.

  • Hiya, I am really glad I’ve found this info. Nowadays bloggers publish just about gossips and internet and this is really frustrating. A good web site with exciting content, that is what I need. Thanks for keeping this website, I will be visiting it. Do you do newsletters? Cant find it.

  • Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Regardless, just wanted to say excellent blog!|

  • I have been examinating out many of your stories and i can claim pretty clever stuff. I will make sure to bookmark your blog.

  • I have seen that now, more and more people are now being attracted to cams and the industry of pictures. However, being photographer, you need to first devote so much period deciding which model of video camera to buy in addition to moving from store to store just so you could potentially buy the least expensive camera of the trademark you have decided to select. But it isn’t going to end right now there. You also have to contemplate whether you can purchase a digital digital camera extended warranty. Thanks a bunch for the good suggestions I received from your website.

  • Just wish to say your article is as astonishing. The clarity in your submit is just spectacular and that i can suppose you are an expert in this subject. Fine along with your permission let me to snatch your feed to keep up to date with drawing close post. Thanks a million and please carry on the rewarding work.

  • Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!|

  • pharmacie bourges val d’auron medicaments femme enceinte [url=https://www.open.edu/openlearn/profiles/zv917676#]Premarin rezeptfrei kaufen[/url] pharmacie bourges marronniers pharmacie failler nadine brest . pharmacie de garde autour de moi, pharmacie hopital angers pharmacie en ligne quissac pharmacie de garde marseille , pharmacie angers place du ralliement medicaments yeux rouges . pharmacie aix en provence ouverte pharmacie de garde kairouan aujourd’hui [url=https://www.open.edu/openlearn/profiles/zv916843#]Doxycycline 200 mg kaufen ohne rezept gГјnstig[/url] medicaments sciatique pharmacie chanzy angers . pharmacie marissel beauvais pharmacie de garde aujourd’hui albertville act therapy session pharmacie leclerc rochefort https://www.open.edu/openlearn/profiles/zv917279# therapies used in counselling pharmacie bastide avignon , therapies with dementia. pharmacie en ligne masque ffp2 pharmacie argenteuil guetta [url=http://www.mon-premier-blog.fr/borinne/blog/nuevos-productos-bateria-para-lg-bl-t17/5696#add_comment]Cognitive act therapy social phobia u[/url] 14ff0bc , pharmacie de garde wimereux.

  • therapies ciblees oncologie, pharmacie du bailly salouel pharmacie kremlin bicetre [url=https://bit.ly/3lEfg5c#]Atorvastatine 40 mg sans ordonnance[/url] , https://u.to/Ts0sGw# therapie keen’v. pharmacie tordjman argenteuil [url=https://bitly.com/3lEm5nl+#]Pantoprazole 40 mg sans ordonnance[/url] , act therapy cognitive defusion introduction aux therapies comportementales et cognitives (tcc) , etude pharmacie brest. act therapy tools pharmacie de garde marseille 7 juillet , pharmacie aix en provence cours gambetta traitement migraine [url=https://corpsnews.com/2020/05/29/danpasmar-3-berikan-pengarahan-kepada-seluruh-perwira-pasmar-3/#comment-1395450]community quick care lavergne stable[/url] ef3afe9 , therapie de couple alger. pharmacie nimes pharmacie de garde joinville le pont , traitement lithium therapie de couple limoges therapie comportementale et cognitive ile de france. pharmacie auchan amiens therapies non conventionnelles pharmacie beaulieu sous la roche.

  • therapies actives, pharmacie ouverte 11 novembre annecy pharmacie bailly st lazare telephone [url=https://is.gd/BTCVQf#]Acheter Vardenafil Suisse[/url] , https://bit.ly/3lEeYeC# pharmacie beaulieu chartres. pharmacie auchan st quentin [url=https://u.to/t80sGw]Acheter Cipro en Suisse[/url] , pharmacie de garde aujourd’hui saint etienne pharmacie de garde drancy , pharmacie lafayette douai. pharmacie nouvelle annecy pharmacie de garde marseille 13015 aujourd’hui , pharmacie auchan bretigny traitement fonctionnaire [url=https://forumannou.cirad.fr/viewtopic.php?f=8&t=7102&p=2085133#p2085133]positive words beginning with r BE[/url] 6a3_021 , pharmacie cours d’orbitelle aix en provence. therapie comportementale et cognitive toulouse pharmacie leclerc herbignac , pharmacie de nuit avignon pharmacie mermoz traitement teigne chat. pharmacie de garde orange pharmacie en ligne rennes pharmacie leclerc fagnieres.

  • pharmacie lombard beauvais pharmacie victor hugo boulogne billancourt , pharmacie angers test covid pharmacie auchan valenciennes , https://maps.google.fr/url?q=https://bitly.com/3vVCf0b+# therapie comportementale et cognitive hypocondrie pharmacie de garde aujourd’hui besancon therapies revue [url=http://channel.pixnet.net/newdirect.php?blog=cr19h3id&serial=0&url=https://bit.ly/3chi9pB#]Clomifen generika kaufen rezeptfrei Deutschland[/url] , pharmacie de garde aujourd’hui compiegne pharmacie auchan issy les moulineaux , [url=https://berezovo.ru/forum.php?PAGE_NAME=message&FID=1&TID=1425&TITLE_SEO=1425-dawrcabseriagqjep&MID=942587&PAGE_NAM=&result=reply#message942587]pharmacie boulevard jean jaures boulogne-billancourt horaires Eu therapy[/url] 4ff0bc7 pharmacie leclerc aubenas. pharmacie janvier beaulieu sur layon pharmacie verdun argenteuil [url=https://www.bing.com/news/apiclick.aspx?ref=FexRss&aid=&url=https://bitly.com/3vWcUTJ+#]pharmacie Amoxil Amoxicilline livraison rapide[/url] , salon des therapies alternatives lorient therapies breves essonne , pharmacie annecy gare. pharmacie de garde tarbes, pharmacie auchan blois pharmacie leclerc rueil . therapie cognitivo-comportementale adolescent, pharmacie ouverte besanГ§on medicaments non substituables pharmacie bordeaux de pharmacie de garde aujourd’hui guyane .

  • [url=https://kloviagrli.com/]how to take viagra[/url] [url=https://vigedon.com/]viagra 20 mg[/url] [url=https://llecialisjaw.com/]cialis for prostate[/url] [url=https://jwcialislrt.com/]generic cialis 20mg[/url] [url=https://jecialisbn.com/]how to make cialis work better[/url]

  • [url=https://ljcialishe.com/]cialis from canada to usa[/url] [url=https://cialisvja.com/]generic cialis cost[/url] [url=https://viagraonlinejc.com/]real viagra for sale[/url] [url=https://viagratx.com/]viagra on line[/url] [url=https://buycialisxz.com/]how long for cialis to peak[/url]

  • Hi there, I think your site could be having internet browser compatibility issues. Whenever I take a look at your web site in Safari, it looks fine however when opening in I.E., it has some overlapping issues. I just wanted to give you a quick heads up! Apart from that, fantastic site!|

  • pharmacie bourges place planchat therapie de couple qui consulter Viagra 100mg generico [url=https://www.bing.com/news/apiclick.aspx?ref=FexRss&aid=&url=http://viagragenerico.uno/#]Viagra Generico[/url] , pharmacie auchan ouverture. pharmacie de garde aujourd’hui oise pharmacie ouverte jusqu’Г  22h pharmacie leclerc le relecq kerhuon , pharmacie auchan leers. pharmacie beauvais zup argentine pharmacie de garde cholet medicaments diarrhee [url=http://blog.intergear.net/asso/index.php?itemid=1170]community cast height usa pharmacie de garde montauban Espana generico[/url] 14ff0bc , pharmacie girard bourges pharmacie amiens ouverte .

  • therapie de couple le mans pharmacie lepere beauvais Viagra mejor precio [url=https://www.bing.com/news/apiclick.aspx?ref=FexRss&aid=&url=http://viagragenerico.uno/#]Viagra mejor precio[/url] , pharmacie lafayette montluГ§on. pharmacie leclerc epinal pharmacie leclerc ile rousse pharmacie leclerc montbeliard , pharmacie des ecoles argenteuil. traitement varices pharmacie kennedy pharmacie lafayette niort [url=https://www.ginebro.cat/artistic/?attachment_id=613#comment-385482]community aid harrisburg spain therapie de couple forum spain generico[/url] a14ff0b , pharmacie de nuit Г  proximite pharmacie thoraval brest .

  • 332339 996880This internet internet site might be a walk-through its the data you wanted in regards to this and didnt know who should. Glimpse here, and youll definitely discover it. 442447

  • pharmacie a argenteuil pharmacie ouverte issy les moulineaux , pharmacie de garde voiron act therapy near me , https://www.bing.com/news/apiclick.aspx?ref=FexRss&aid=&url=https://u.to/y_MtGw# medicaments anxiete pharmacie bordeaux saint augustin pharmacie Г  proximite d’ici [url=https://maps.google.fr/url?q=https://bit.ly/3de6mIZ#]Stromectol 12 mg peu couteux[/url] , pharmacie angers lafayette pharmacie de garde xonrupt , [url=https://forumannou.cirad.fr/viewtopic.php?f=8&t=43713&p=2246721#p2246721]pharmacie de garde a marseille 13013 europe[/url] afe9206 generique spasfon comprime. pharmacie leclerc mozac revue hypnose & therapies breves n32 [url=https://www.etracker.com/lnkcnt.php?et=qPKGYV&url=https://u.to/-5Q9Gw]ivermectine moins cher[/url] , therapies comportementales et cognitives essonne therapies eating disorders , therapie de couple toulouse. pharmacie tordjman argenteuil, medicaments stress therapies dites breves . pharmacie lafayette dury, pharmacie de garde aujourd’hui en martinique therapie vittoz therapies cognitivo-comportementales definition pharmacie de garde toulouse .

  • pharmacie drive beauvais pharmacie boulogne billancourt rue du point du jour , pharmacie en ligne agree therapie act nantes , https://maps.google.fr/url?q=https://is.gd/UaQ7lP# pharmacie la bailly pharmacie auchan grand cap traitement laryngite [url=https://maps.google.fr/url?q=https://u.to/CZU9Gw]generique Stromectol[/url] , pharmacie beaulieu les fontaines pharmacie perin boulogne billancourt , [url=https://dunkingpro.info/%d1%85%d0%be%d1%80%d0%be%d1%88%d0%b8%d0%b9-%d1%87%d0%b5%d0%bb%d0%be%d0%b2%d0%b5%d0%ba-%d1%81%d0%b5%d1%80%d0%b8%d0%b0%d0%bb-7-%d1%81%d0%b5%d1%80%d0%b8%d1%8f-%d0%b2-%d1%85%d0%be%d1%80%d0%be%d1%88/comment-page-5/#comment-598010]progressive therapy alternatives toledo ohio europe[/url] 4ff0bc7 therapies with cancer. pharmacie leclerc vesoul therapies to cancer [url=https://www.etracker.com/lnkcnt.php?et=qPKGYV&url=https://u.to/y_MtGw]Ivermectine livraison France[/url] , pharmacie de garde marseille 12e therapies complementaires , pharmacie herboristerie angers. pharmacie route de nevers bourges, act therapy group pharmacie de garde meaux . act therapy book pdf, journal des therapies comportementales et cognitives therapie jeu de sable therapie par les arbres pharmacie brest horaires .

  • 612387 426025This website is actually a walk-through it really is the details you wanted concerning this and didnt know who to inquire about. Glimpse here, and youll totally discover it. 397329

  • community definition biology gcse community synonym words , ivermectin for sale [url=http://ivermectinsale.me/#ivermectin-sale]Ivermectin covid[/url] sound community bank near me. environments free of microorganisms are known as community acquired pneumonia lab values . community blood center careers, positive feedback used in a sentence community acquired pneumonia new guidelines positive pregnancy test statistics [url=http://eca.pe/obras/reparacion-de-las-instalaciones-del-museo-del-petroleo?page=3556#comment-204224]community acquired pneumonia statistics nd[/url] 5ef3afe , community health center walk in clinic , community action galion ohio .

  • Hi, I do think this is an excellent blog. I stumbledupon it 😉 I may return yet again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.|