Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can you intercept the url request before a 404 error occurs?

Reply
Thread Tools

Can you intercept the url request before a 404 error occurs?

 
 
=?Utf-8?B?UlVTU0VMTCBNQ0dJTk5JUw==?=
Guest
Posts: n/a
 
      07-14-2004
I am trying to get an HTTPModule to handle some form processing for me i.e. the form action tag points to a predefined url that doesn't exist and my BeginRequest handler check the url request and if it the predefined one it deals with the Request object etc.

However control never gets into the BeginRequest handler as the 404 page is displayed. Can this be done or should I be looking for an alternative?

Thanks
 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      07-14-2004
Is the resource an ASP.NET resource (like an ASPX file)? If not,
you'll need to configure the application mappings to route the request
to the ASP.NET runtime.

There are screenshots and more information in this article:
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

--
Scott
http://www.OdeToCode.com

On Tue, 13 Jul 2004 23:34:01 -0700, "RUSSELL MCGINNIS"
<> wrote:

>I am trying to get an HTTPModule to handle some form processing for me i.e. the form action tag points to a predefined url that doesn't exist and my BeginRequest handler check the url request and if it the predefined one it deals with the Request object etc.
>
>However control never gets into the BeginRequest handler as the 404 page is displayed. Can this be done or should I be looking for an alternative?
>
>Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: intercept request and redirect before page is laoded super todd ASP .Net 1 05-23-2005 10:10 PM
Intercept IIS 404 errors? Issue with Viewstate and 404 Jonathan Folland ASP .Net 2 03-17-2005 02:32 AM
httphandler to intercept pages before sent to user =?Utf-8?B?cnBhbGU=?= ASP .Net 2 12-16-2004 07:37 AM
Intercept html before rendering Adam Smith ASP .Net 6 05-27-2004 09:15 AM
Usercontrol Postback - can i intercept Request Alex ASP .Net Building Controls 0 04-26-2004 02:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57