473,756 Members | 1,964 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to correctly skip executiong of .aspx from a HTTP module

Here is my problem description:

We have a Java Portal from there a user can click on a certain aspx page.
There is some kind of authentication mechanism that can be compared to a
challenge-response authentication where a Java Servlet asks me for something
with a HTTP Post and I have to respond to that request and in return the
Java Servlet will retrieve the page again but this time using a HTTP Get.
The problem is that when I answer with the Response object from within the
HTTP module the aspx page will still be processed. If I want to skip
processing the request by issueing a Response.End() or an
Application.Com pleteRequest() the response is never sent to the Java
Servlet. I have the impression that when I end the request from within the
HTTP something vital is not set to the client, something that will be sent
when I let the aspx process the request.

Using Reflector I noticed the following in the System.Web.Http Response:

internal void FinalFlushAtThe EndOfRequestPro cessing()
{
this.Flush(true );
}
Please kan someone answer what exactly goes wrong here and how I can skip
the processing of the ASPX page? I can provide you with more information if
needed. Please don't give me workarounds as I am fully aware that I can work
with a HTTP handler but these are processed too late in the pipeline of the
HTTP request.

A million thanks to anyone who can help me out in any way :)

--
Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
Jun 7 '06 #1
0 1101

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

Similar topics

2
585
by: Ramon Felciano | last post by:
Hi -- I'm using the csv module to parse a tab-delimited file and wondered whether there was a more elegant way to skip an possible header line. I'm doing line = 0 reader = csv.reader(file(filename)) for row in reader: if (ignoreFirstLine & line == 0):
1
2177
by: kevin buchanan via .NET 247 | last post by:
I have a ASP.NET web app with a common module. How can I access the Public functions in the common module from the 'in-line' scripts in the ASPX page? ...from the ASPX page... <asp:Label runat="server" BackColor='<%# System.Drawing.ColorTranslator.FromHTML(Module1.WarnLOS(Module1.LOSMinutes(DataBinder.Eval(Container.DataItem,"vAdmDtTm"))))%>' Text='<%# DataBinder.Eval(Container, "DataItem.rmDesc")%>' ID="Label2"> </asp:Label>
6
4678
by: johnf401 | last post by:
I've got a VB .NET Web application that has several frames (for discussion sake, let's call them Form1.aspx and Form2.aspx). I want to be able to call a code module in Form2.aspx.vb from code module in Form1.aspx.vb. How do I format this statement? I'm not interested in calling client-side script on Form2.aspx from Form1.aspx.vb - I want to fire off server-side module in Form2.aspx.vb
24
2755
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX is Microsoft's attempt to "dumb down" web application development to help unskilled developers such as web design agencies achieve some results. For high quality applications IHttpHandlers are the way to go.
0
965
by: Gabriel Lozano-Morán | last post by:
Here is my problem description: We have a Java Portal from there a user can click on a certain aspx page. There is some kind of authentication mechanism that can be compared to a challenge-response authentication where a Java Servlet asks me for something with a HTTP Post and I have to respond to that request and in return the Java Servlet will retrieve the page again but this time using a HTTP Get. The problem is that when I answer with...
13
3558
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
11
1604
by: Jan | last post by:
Hi, I defined a function like this: Public Function myfunction(ByVal myvar As Object) As String ... Return xyz End Function in aspx file, i use it like this:
5
1482
by: Michael Yanowitz | last post by:
Hello: I have been searching for an easy solution, and hopefully one has already been written, so I don't want to reinvent the wheel: Suppose I have a string of expressions such as: "((($IP = "127.1.2.3") AND ($AX < 15)) OR (($IP = "127.1.2.4") AND ($AY != 0))) I would like to split up into something like:
1
3498
by: mazdotnet | last post by:
Hi all, I've installed the new Microsoft URL Rewrite Module for IIS 7.0 http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6 on both my laptop (Vista Home Premium) and my desktop (Vista Ultimate). I'm running my sites on IIS instead of the ASP.NET server. If I call my site using http://localhost in the browser, it works fine. However, as soon as I run it from within Visual Studio 2008 in
0
9287
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9886
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9722
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7259
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.