Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: convert asp pages to html?

Hybrid View

  1. #1

    convert asp pages to html?

    hey everyone - looking for a tool that will visit every single dynamic page on a site and automatically "save as" to a static html page.

    my goal in this is to create a sitemap that has links to every product page in static format so all spiders can see every one. also will have the effect of appearing to double the size of my client's site.

    note: i'm familiar with the software that will dynamically change the links to be static links, but i'm not interested in that....would prefer to have individual files.

    best wishes,
    brooks

  2. #2
    I don't know if this is the best way to do this, but I have used the MSXML2.ServerXMLHTTP (a standard XML compononent) to "load" web pages within the script and to get the whole page content (static content as it would appear to any browser).

    Once you have the page content you can use the fileSystem Object to save the data to a new file.

    I haven't looked at it for a while, but here is some of the code for viewing the pages within the script:

    Code:
    set http_obj=createObject("MSXML2.ServerXMLHTTP")
    	call http_obj.Open("GET","http://www.domain.com/webpage.asp",true)
    	http_obj.send
    	On Error Resume Next
    	If http_obj.readyState <> 4 then
    		http_obj.waitForResponse 10 'wait for 10 seconds
    	End If
    	If Err.Number = 0 then 'no error occured
    		If (http_obj.readyState <> 4) Or (http_obj.Status <> 200) Then 'ensure all data (4) was recieved from a successful page load (200)
    			'Abort the XMLHttp request
    			http_obj.Abort
    			runNavSideXML="ABORT"
    		Else
    			runNavSideXML=http_obj.responseText
    		end if
    	else
    		runNavSideXML="ERROR"
    	end if

Similar Threads

  1. Convert Blog Templates with HTML Tidy?
    By shamarkaleo in forum Syndication and Social Media Discussion Forum
    Replies: 0
    Last Post: 02-03-2007, 08:38 PM
  2. Convert HTML table layout to CSS/XHTML Project
    By mikmik in forum Web Programming Discussion Forum
    Replies: 25
    Last Post: 07-13-2006, 06:25 PM
  3. PDF vs. HTML pages
    By virtualcontractor in forum Search Engine Optimization Forum
    Replies: 1
    Last Post: 08-08-2005, 09:02 AM
  4. Tool to convert .asp to .html pages
    By lucks in forum Search Engine Optimization Forum
    Replies: 1
    Last Post: 12-07-2004, 12:37 PM
  5. Help:Converting .PHP pages into .html(.htm) pages
    By megame in forum Search Engine Optimization Forum
    Replies: 4
    Last Post: 07-07-2004, 06:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •