473,411 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Discovering which handler is being used for request?

Here's something kind of out there. I'm doing some "stuff" in
global.asax's Application_OnAcquireRequestState event. I have some
other non-traditional file extensions mapped to the asp.net process
(like .jpg to check that I'm not being bandwidth leeched). Is there an
easy way to see in Application_OnAcquireRequestState which class is
handling the request? In my case, I don't need to run the block of
code unless the request is being handled by
System.Web.UI.PageHandlerFactory.
Nov 18 '05 #1
1 948
"Jeff 'Jones' Putz" <je********@hotmail.com> wrote in message
news:66**************************@posting.google.c om...
Here's something kind of out there. I'm doing some "stuff" in
global.asax's Application_OnAcquireRequestState event. I have some
other non-traditional file extensions mapped to the asp.net process
(like .jpg to check that I'm not being bandwidth leeched). Is there an
easy way to see in Application_OnAcquireRequestState which class is
handling the request? In my case, I don't need to run the block of
code unless the request is being handled by
System.Web.UI.PageHandlerFactory.


You could look at Context.Handler.
--
John Saunders
John.Saunders at SurfControl.com
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tobias Hesselmann | last post by:
Hi folks, i have a problem using a PHP script as a custom handler in Apache. What i wanna do is this: Whenever a .html file is requested by a browser, i want Apache to call a CGI that outputs...
2
by: Davíð Þórisson | last post by:
hi in my old Asp pages I used Jscript as below that is a single .asp page would contain various subcodes. Is it the same in Asp.net? switch (Request.QueryString("handler").Item) { case "load":...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
8
by: bryan | last post by:
Is there any way I can get the application path (the one returned by Request.ApplicationPath) in the Application_Start method in Global.asax? Request is not valid there. On a related note, is there...
15
by: Amit D.Shinde | last post by:
I am adding a new picturebox control at runtime on the form How can i create click event handler for this control Amit Shinde
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
0
by: tshad | last post by:
I have set up an error handler in the Global.asax, but it doesn't give me the information I can get from the Normal Windows Error page. This is really preventing me from being able to fix errors...
1
by: robtyketto | last post by:
Greetings, I'm a newbie to jsp/java so apologies if this request seems trivial. I have two forms (separate .jsps) which are used to manipulate database records, one adds a record the others...
6
by: Jordan S. | last post by:
Using .NET 3.5... 1. Will ASP.NET guarantee that no more than ONE instance of a custom HTTP handler factory (class implementing IHttpHandlerFactory) is ever created in an ASP.NET application? ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.