Groups | Blog | Home
all groups > inetserver asp db > august 2007 >

inetserver asp db : generating html


SOC
8/6/2007 12:00:00 AM
(Further to "24hrs static content".....many thanks)
Currently our web site is pulling all pages from a database, dependent on
querystrings.

I wish to set up different system:

index.asp lists a selection of links to pages, but instead of
href="/page.asp?a=10&b=20"
the link will be
href="/10/20.html"

This html page will not be present when the link is used for the first time,
so goes to custom 404.

404.asp extract the querystring from the page name and directory, generates
the html and creates the 20.html page.
Then it redirects to 20.html.
Future users will go to a html page with no need for database access.

I'm having difficulty generating the html, I'm testing the code below. Am i
on the correct track?
Thanks.


MSXML3.dll error '80072ee7'

The server name or address could not be resolved

/404.asp, line 27 (...xmlHttp.Send "")

<%
Response.Expires = -1
URLToRSS = http://www.abcde12345xyz.com:99/anindex.html
Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP3.0")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send ""
strHTML = xmlHttp.ResponseText
Set fstemp = server.CreateObject("Scripting.FileSystemObject")
Set filetemp = fstemp.CreateTextFile("somepage.htm", true,true)
filetemp.Write(strHTML)
filetemp.Close
set filetemp = nothing
set xmlHttp = nothing
response.Redirect("somepage.html")
%>


Evertjan.
8/6/2007 12:00:00 AM
SOC wrote on 06 aug 2007 in microsoft.public.inetserver.asp.db:

[.......]

[quoted text, click to view]

So the url does not exist or is inaccessable from the server.

The below is not part of the problem, and is not even executed, meseems.

Retest the url,
and then make a testpage, a simple test.asp, not containing the below,
but the %>.


[quoted text, click to view]



--
Evertjan.
The Netherlands.
Evertjan.
8/6/2007 3:34:06 PM
Sean O'Connor wrote on 06 aug 2007 in
microsoft.public.inetserver.asp.db:

[quoted text, click to view]

[Please do not toppost on usenet]

[quoted text, click to view]

Forgetting the quotes is unforgivable in vbs!!!
[while allowed in jscript]

[quoted text, click to view]

Try:

"MSXML2.ServerXMLHTTP"

[quoted text, click to view]

[advice: do not use 404.asp for testing!]


This works fine overhere:

<%
Response.Expires = -1
URLToRSS="http://www.google.com/"
Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send ()
response.write xmlHttp.ResponseText
%>


--
Evertjan.
The Netherlands.
Evertjan.
8/6/2007 3:36:08 PM
Evertjan. wrote on 06 aug 2007 in microsoft.public.inetserver.asp.db:
[quoted text, click to view]


Why do you change your name in one and the same thread, Sean?

--
Evertjan.
The Netherlands.
Evertjan.
8/6/2007 3:38:44 PM
SOC wrote on 06 aug 2007 in microsoft.public.inetserver.asp.db:

[quoted text, click to view]

Sean,
please first try correct code,
before you decide your server is the culprit.

<%
Response.Expires = -1
URLToRSS="http://www.google.com/"
Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send ()
response.write xmlHttp.ResponseText
%>

--
Evertjan.
The Netherlands.
Sean O'Connor
8/6/2007 4:01:17 PM
I have been able to create a web page using filesystemobject, but I can't
generate content using msxml:

Response.Expires = -1
URLToRSS=http://www.abc123.xyz.com
Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP3.0")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send () (....line27)

The following error is returned.

MSXML3.dll error '80072ee7'

The server name or address could not be resolved

/404.asp, line 27





Thanks.







[quoted text, click to view]

SOC
8/6/2007 4:28:35 PM
Apologies, reading an earlier post on this subject, I have noticed that the
web cannot be browsed from this server, and therefore content cannot be
generated from the web.
Thanks Soc.

[quoted text, click to view]

SOC
8/6/2007 4:29:52 PM
Apologies, having read an earlier post on this subject, I have noticed that
the
web cannot be browsed from this server, and therefore content cannot be
generated from the web.
Thanks Soc.

[quoted text, click to view]


SOC
8/7/2007 12:00:00 AM
Thanks Evertjan,
It works on a different machine.
Soc.
[quoted text, click to view]

AddThis Social Bookmark Button