473,231 Members | 1,687 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,231 software developers and data experts.

Intercepting asp call and talking with Browser and IIS

I am new to asp.net.
I have an asp page with a submit button which sends out some
information.

Instead of having IIS to respond and deal with this information, I
would like to have a .NET program (for instance a .NET service, or even
a client .net application) which is able to intercept this call and
deal with the associate information. This middle application might
decide whether to send something to IIS or just do everything by itself
and respond to the browser..

I would be grateful if you could give indications on how to implement
the key parts of this architecture (intercepting the info associated to
submit or other asp call and the talking back with the browser and in
case sending something to IIS). Pointer to demos or code snippets are
particularly appreciated.

-Pam

Jun 11 '06 #1
3 1433
On 11 Jun 2006 04:19:56 -0700, pa***********@libero.it wrote:
I would be grateful if you could give indications on how to implement
the key parts of this architecture (intercepting the info associated to
submit or other asp call and the talking back with the browser and in
case sending something to IIS). Pointer to demos or code snippets are
particularly appreciated.


Things are not as simple as that. When a button submits data to a site,
the page expects to receive data back, and essentially considers the
existing page to be gone. This means you *HAVE* to send back the original
page if you use a normal submit process and want the same page to stay
there.

There are other options, but they are greatly more complicated. For
example, you can use Ajax, which is essentially javascripted code to submit
a request and then do whatever you like.

Another option is to use ActiveX or Java/.net applets on the client.

You really need to have a better idea of what it is you are trying to
accomplish so that you can choose the right technique. What you've written
so far is very vague.

Start here:

http://atlas.asp.net/Default.aspx?tabid=47
Jun 11 '06 #2
Pamela,
As Erik indicates, your post is somewhat vague. The key thing to understand
here is that when a page in a browser has a form that can be submitted, the
form makes an HTTP post to the forms "ACTION" target URL. That URL is
normally an HTTP Listener like IIS, usually (but not always) to the same page
from which the page in the browser came from.

So the bottom line is that if you expect to be able to "Intercept" this post
in some way, unless the original page in the browser was generated and sent
out by some other infrastructure than IIS, you are pretty much tied into the
framework from whence it came.

You can have ISAPI filters in IIS, and UrlRewriters / HttpHandlers in
ASP.NET that can approach what you are describing, but the bottom line is
that the post has to be over HTTP.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"pa***********@libero.it" wrote:
I am new to asp.net.
I have an asp page with a submit button which sends out some
information.

Instead of having IIS to respond and deal with this information, I
would like to have a .NET program (for instance a .NET service, or even
a client .net application) which is able to intercept this call and
deal with the associate information. This middle application might
decide whether to send something to IIS or just do everything by itself
and respond to the browser..

I would be grateful if you could give indications on how to implement
the key parts of this architecture (intercepting the info associated to
submit or other asp call and the talking back with the browser and in
case sending something to IIS). Pointer to demos or code snippets are
particularly appreciated.

-Pam

Jun 12 '06 #3

Dear Peter and Erik, Thank you for the feedback.

As I indicated I am quite new to the whole thing.
but I know that choosing the right approach is already more
than 50% work done.

I will explain better what I am trying to do.

I have some classes that, put simply - given a connection to a database
and some information on how to build a report layout -
send the request to the database, extract the data using a fast
oledbreader
and build on the fly a report page html.

This is purely static html + CSS.
I would like to make this "dynamic". I am thinking about
2 first levels:

1. Simple possibility refresh of report when the user presses a
button

2. Give the user the possibility to change manually the SQL query
which extracts data
from the database (for instance adding filters, where, having...)
and refresh the report.

Given that I already have the classes (vb.net) to query the DB and to
build on the fly
the report html page, what I would like to know is what is the best way
to trasnsform
the current situation, which is pretty static, in a dynamic one, where
the user
can, through its browser, modify (just filtering changes, not
structural) the query SQL and
cause the regeneration of the report.

Since I have been programming this as a win application, and not with
asp.net, some schematic and simple example on the right approach would
really help a lot.

-pam

Jun 12 '06 #4

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

Similar topics

6
by: Valery Polyakov | last post by:
I am drawing lines with a semi-transparent color (alpha=100). When these lines intercept, the color becomes more intense. Is there a way to avoid this, so that I would get the same intensity of...
4
by: Curious Coder | last post by:
I have been tasked with a project that I do not think can be accomplished. Our company has an application that runs as an unmanaged ActiveX control on user desktops. It is designed to work with...
5
by: aaa | last post by:
Is there a simple straight forward tool out there for intercepting my SOAP requests so that I can debug the XML that I am sending?
0
by: ddman | last post by:
I'm writing a filtering application similar to a proxy server in vb.net. I need to intercept browser requests and modify them before throwing it back to the browser. How do I go about doing this?...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

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.