Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading a page from site 'a' - Writing to site 'b'

Status
Not open for further replies.

Kingmarl

Programmer
Mar 22, 2001
48
GB
Hi. I am V.V.V.V. New to ASP.
I have just started using Ultradev for the majority of my ASP work but it just ain't good enough.

I need to build an asp page, that will read a page from my servcer and write what it reads to a page on someone elses page. For example. Visitor goes to and will see
The only problem being that the page needs to be submitted to a search engine, so the contents must be Writen to the page rather than included in the page. ----------------------------------------
Don't forget to visit for some banging new music from DJ Cumback (ME!)
 
Why don't you try placing your search key words on the actual page being visited, then use an include statement for the content. Wouldn't that serve your purpose ??
 
It's ok. Best way to do it is with a simple XML code.

Here's the code incase anyone has the same problem. The one I used is not commented out:

<%
Response.Buffer = True
Dim objXMLHTTP, xml

' Create an xmlhttp object:
Set xml = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;)

' Opens the connection to the remote server.

xml.Open &quot;GET&quot;, &quot; False

' Actually Sends the request and returns the data:
xml.Send

'Display the HTML both as HTML and as text
'Response.Write &quot;<h1>The HTML text</h1><xmp>&quot;
'Response.Write xml.responseText
'Response.Write &quot;</xmp><p><hr><p><h1>The HTML Output</h1>&quot;

Response.Write xml.responseText


Set xml = Nothing
%> ----------------------------------------
Don't forget to visit for some banging new music from DJ Cumback (ME!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top