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

return contents of url to asp page

Hello

I'm trying to determine a way to call a url from within an ASP page and have the contents (page source) returned to the calling asp page (the same way iis returns page source to your browser). In reality I'm calling a dll which is parsing xml tags. But rather than get into a complicated example I'll try to provide a simple example of what I'm trying to accomplish

Example

ASP pag
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body

call url http://123.23.2.121/junkfile.html and replace its source her

</body></html

JUNKFILE.HTM
<table width="500" border="1"><tr><td width="350">Hello</td><td width="161">&nbsp;</td></tr><tr></table

RESULTING ASP PAG
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body><table width="500" border="1"><tr><td width="350">Hello</td><td width="161">&nbsp;</td></tr><tr></table></body></html

Thank

Eri
Jul 19 '05 #1
2 1417
use serverXmlHTTP()

"Eric" <an*******@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
Hello,

I'm trying to determine a way to call a url from within an ASP page and have the contents (page source) returned to the calling asp page (the same
way iis returns page source to your browser). In reality I'm calling a dll
which is parsing xml tags. But rather than get into a complicated example
I'll try to provide a simple example of what I'm trying to accomplish.
Example:

ASP page
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body>

call url http://123.23.2.121/junkfile.html and replace its source here

</body></html>

JUNKFILE.HTML
<table width="500" border="1"><tr><td width="350">Hello</td><td width="161">&nbsp;</td></tr><tr></table>
RESULTING ASP PAGE
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body><table width="500" border="1"><tr><td width="350">Hello</td><td
width="161">&nbsp;</td></tr><tr></table></body></html>
Thanks

Eric

Jul 19 '05 #2
Try this.
http://www.darkfalz.com/1068

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Eric" <an*******@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
Hello,

I'm trying to determine a way to call a url from within an ASP page and have the contents (page source) returned to the calling asp page (the same
way iis returns page source to your browser). In reality I'm calling a dll
which is parsing xml tags. But rather than get into a complicated example
I'll try to provide a simple example of what I'm trying to accomplish.
Example:

ASP page
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body>

call url http://123.23.2.121/junkfile.html and replace its source here

</body></html>

JUNKFILE.HTML
<table width="500" border="1"><tr><td width="350">Hello</td><td width="161">&nbsp;</td></tr><tr></table>
RESULTING ASP PAGE
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><html><head></head><body><table width="500" border="1"><tr><td width="350">Hello</td><td
width="161">&nbsp;</td></tr><tr></table></body></html>
Thanks

Eric

Jul 19 '05 #3

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

Similar topics

1
by: Don Grover | last post by:
Does any one have an asp page they can share that returns current session details, cookies etc. I can't get session arrays to return in a page.
3
by: fig000 | last post by:
Hi, I'm relatively new to Javascript so please bear with me on what might sound like silly questions. This is what I want to do: I'm working in classic asp (I have to for this project). I...
2
by: kermit | last post by:
I have a .net aspx page MyPage.aspx (client side) with code behind MyPage.aspx.vb (server side). I use the Page_Load event in MyPage.aspx.vb to load data into a multiteir class based...
1
by: Beowulf | last post by:
I have a report laid out in Design View as shown at the end of this message. I have code that performs the following steps: 1. In main report's Report_Open(), DELETE any old rows in tblTOC for...
6
by: John Kotuby | last post by:
Hi all, I am using a 3rd party program in a VS2005 web project. The tool takes as input a string containing HTML and converts it to RTF. I have been creating a page by dynamically loading...
1
by: tom | last post by:
I have the section of code listed below, but when I return from main an exception is thrown from the library, because while returning, destructor is called on each of the object in the sequence...
13
Death Slaught
by: Death Slaught | last post by:
I have my entire page in my "main" div. div.main { width: 100%; height: 100%; border: 1px solid gray; } on the left of the page I have a banner.
9
by: mevryck | last post by:
Greetings I have a huge Javascript with inclusion of external scripts and all. I got this by doing a XSLT . Now I have the contents in a Javascript variable, but I'm not able to update the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
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...

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.