Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SharePoint > SharePoint Development
SharePoint Development Programming and development for SharePoint Portal Server and Windows SharePoint Services
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SharePoint Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 5th, 2011, 09:15 AM
Registered User
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question how to convert a dynamic asp web pages as text files

My project is in asp(Classic Asp).Suppose i want to see one of page in that project.Instead of viewing all content in that page,I have a button in that page if i click that button I need a zip file which should contain .txt file of that webpage content. and it should save in clint machine.

Thanks In Advance

Old September 6th, 2011, 09:01 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

You used to be able to do this simply but it was considered a security risk. Now I'd say you create a page (GetContent.asp) which takes a path in the querystring and opens the file using FileSystemObject (you can MapPath from URL to actual location). Then you want to zip the contents, you'll probably need a third party tool to do this. Then return zipped file as response stream. In your ASP page you can provide a link to
 GetContent.asp?path=<path to self>
Old October 14th, 2011, 08:31 AM
Authorized User
Join Date: Sep 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to convert a dynamic asp web pages as text files


To add to Jeff's information:

Do you mean "Web Scraping" and using Web Pages ?

If you Google or Bing) there are many results.


Have you checked the.

You might Search (Google or Bing) for the Deitel Book Site for Samples and Code.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound files incorporation in web pages softarrow HTML Code Clinic 3 August 1st, 2007 11:39 AM
Batch convert .htm pages to .asp using template karib Dreamweaver (all versions) 22 July 30th, 2007 04:17 PM
convert asp pages to xhtml BrendonMelville HTML Code Clinic 1 March 14th, 2006 01:52 PM
convert asp pages to xhtml BrendonMelville XML 1 March 14th, 2006 11:34 AM
Dynamic creation of Web Pages vickyrawal ASP.NET 1.x and 2.0 Application Design 5 October 1st, 2003 08:28 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.