473,394 Members | 1,887 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,394 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 1437
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.