473,569 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

iFrame Monitoring on Server

Ben
I am building a web app using ASP.NET 2.0. One of the requirements is that we
link to a third party vendor's site, display their content. let the user make
choices on the vendors site and then return the results back to our
application.

I was hoping to use iframes to do this, but am open to other suggestions.
The main issue is that the iframe needs to be monitored on the server to
determine when the information from the vendor should be returned to our
application. The application runs on our intranet, but the vendor is
unwilling to perform a post back to our site when the user finishes.

Is it possible to monitor iframes from the server? If so, how?

Is their a better solution?

Thanks,

Ben

Jul 25 '06 #1
5 1927
you need to code a page to act as a proxy to the vendor site. then you can
parse and extract info as youned it. the iframe would refer to the proxy
page, and the proxy page would use web client to access the 3rd party site.
you will need to mirror the images, or translate the source urls. if they
use javascript, you will a need a proxy for them also.

i'd probably write a httpmodule to do it, then proxy all requests

-- bruce (sqlwork.com)
"Ben" <Jo****@noemail .noemailwrote in message
news:05******** *************** ***********@mic rosoft.com...
>I am building a web app using ASP.NET 2.0. One of the requirements is that
we
link to a third party vendor's site, display their content. let the user
make
choices on the vendors site and then return the results back to our
application.

I was hoping to use iframes to do this, but am open to other suggestions.
The main issue is that the iframe needs to be monitored on the server to
determine when the information from the vendor should be returned to our
application. The application runs on our intranet, but the vendor is
unwilling to perform a post back to our site when the user finishes.

Is it possible to monitor iframes from the server? If so, how?

Is their a better solution?

Thanks,

Ben

Jul 25 '06 #2
Thanks for Bruce's good suggestion.

Hi Ben,

As far as I know, it would be hard to do cross domain/frame monitoring
since client-script is quite restricted to cross frame accessing for pages
in different domain(web site).

How do you think of creating a proxy page as Bruce mentioned? In such case,
we can collect the necessary information in our proxy page from the user
and then programmtically post these information to the vendor site page.
(There are some built-in network components in .net framework that can help
perform HTTP POST request and get response with remote server).

#How to use HttpWebRequest to send POST request to another web server?
http://www.netomatix.com/HttpPostData.aspx

If the target vendor application is also built upon ASP.NET, we'd take care
of some further things such as viewstate:

#Programmatical ly Posting Data to ASP .NET Web Applications
http://dotnet.sys-con.com/read/45127.htm

BTW, if possible you can request the vendor site to expose you a private
webservcie endpoint so that you can programmtically submit the data
(collected from user in your own proxy page) to the vendor site through
webservice.

Hope this also helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial

response from the community or a Microsoft Support Engineer within 1
business day is

acceptable. Please note that each follow up response may take approximately
2 business days

as the support professional working with you may need further investigation
to reach the

most efficient resolution. The offering is not appropriate for situations
that require

urgent, real-time or phone-based interactions or complex project analysis
and dump analysis

issues. Issues of this nature are best handled working with a dedicated
Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 26 '06 #3
Ben
Thanks Bruce and Steven. That get's me pointed in the right direction. It
seems that creating a proxy for the external vendor site might be a fairly
large undertaking.

Steven - you stated that cross domain monitoring is restricted. Does that
mean it is not possible or is just easier / less time consuming to create the
proxy? I'm just trying to determine a robust solution that does not take an
excessive amount of time to implement.

Thanks,

Ben

"Steven Cheng[MSFT]" wrote:
Thanks for Bruce's good suggestion.

Hi Ben,

As far as I know, it would be hard to do cross domain/frame monitoring
since client-script is quite restricted to cross frame accessing for pages
in different domain(web site).

How do you think of creating a proxy page as Bruce mentioned? In such case,
we can collect the necessary information in our proxy page from the user
and then programmtically post these information to the vendor site page.
(There are some built-in network components in .net framework that can help
perform HTTP POST request and get response with remote server).

#How to use HttpWebRequest to send POST request to another web server?
http://www.netomatix.com/HttpPostData.aspx

If the target vendor application is also built upon ASP.NET, we'd take care
of some further things such as viewstate:

#Programmatical ly Posting Data to ASP .NET Web Applications
http://dotnet.sys-con.com/read/45127.htm

BTW, if possible you can request the vendor site to expose you a private
webservcie endpoint so that you can programmtically submit the data
(collected from user in your own proxy page) to the vendor site through
webservice.

Hope this also helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial

response from the community or a Microsoft Support Engineer within 1
business day is

acceptable. Please note that each follow up response may take approximately
2 business days

as the support professional working with you may need further investigation
to reach the

most efficient resolution. The offering is not appropriate for situations
that require

urgent, real-time or phone-based interactions or complex project analysis
and dump analysis

issues. Issues of this nature are best handled working with a dedicated
Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 26 '06 #4
Thanks for your response Ben,

The most convenient and simplest approach should be using client scripts to
access the iframe page's elements and monitor its status, however, this is
prohibited in most browsers due to security and privacy consideration. Here
is the MSDN reference describing Cross-Frame Scripting and security of IE
dhtml behaviors:

#About Cross-Frame Scripting and Security
http://msdn.microsoft.com/workshop/a...security.asp?f
rame=true

You can find many other web articles discussing on cross-frame scripting.
So for your scenario, I'm afraid we have to come to the "proxy page"
approach. Or if you can persuade your vendor site to provide a more
friendly and convenient interface to let your page interact with theirs
that'll be the most prefect solution.

Anyway, please feel free to let me know your decision or if you need any
further assistance.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 27 '06 #5
Hello Ben,

Have you got any progress on this issue? Please feel free to post here if
you've got any progress or need any further assistance.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Jul 31 '06 #6

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

Similar topics

0
2014
by: Sven Dzepina | last post by:
Hi All, how I can make a simply HostWatch - system which use a mysql DB and send me an e-Mail if the Server goes off and again on? I began to programm this last night, but the MySQL inquiry is too hard for me! =( Thats my code: ----
2
21095
by: Tom Van Overbeke | last post by:
Hi, I created a web page that displays a logfile monitor i wrote for monitoring our servers. it refreshes every minute and displays a text file in an iframe. I'd like to reduce the font size so that more info fits in the text box, but i'm not too savvy in html, and the <font> tag doesn't seem to work here. does anyone know how to change the...
3
7355
by: foldface | last post by:
Hi Completely ignore the non-standard nature of the noddy example below. I want to capture a mouse click in a frame from outside that frame. Everything I read online seems to indicate its something like the below but I just can't get it to work. any ideas? Ta F
1
4691
by: Rhys | last post by:
I have a page which has an IFrame on it. The src of the IFrame is a page with a datagrid on it. The Datagrid has bound template columns. The columns of the datagrid pass the bound data value of each cell within it to my code behind file which generates the HTML to display the data in a formatted text box, some of which is editable, some of...
9
3189
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network...
3
8126
by: Angel | last post by:
How do I get the reference of the IFrame from the asp.net webpage that is being displayed within that IFrame? In other words I have an IFrame in my page. Within that IFrame Set the source to a different asp.net page. I want on that page that is within the IFrame to be able to access the IFrame object. How can that be done? Besides the...
7
4343
by: mojtaba_danai | last post by:
Hi Hope that some one can help with the following. I wish to write a Visual C++ program, which monitors 3-4 other services (process/programs also written in VC++). The program shall monitor, if the other processes are alive and to see, if they are sending heartbeat messages. I wish to do this for exampel via socket programming. Can any...
7
3338
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on the same page. What is the easier way to automatically fill the iframe with the required new web page without having to get the user to click on...
9
16839
by: gwong123 | last post by:
Hey, I need to convert this javascript code into iframe. The javascript goes into a server and brings out an ad banner. The X's is the server IP. <script language="javascript" type="text/javascript" src="http://XXX.XXX.XXX.XXX/blahblah/0000/blahblahblah.php"></script> What I need to do is convert that line of code into an iframe format so...
0
7700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
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...
1
7676
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
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...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
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
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.