Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SharePoint > SharePoint Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 5th, 2011, 09:15 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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

Nagasekhar
Reply With Quote
  #2 (permalink)  
Old September 6th, 2011, 09:01 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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
Code:
 GetContent.asp?path=<path to self>
__________________
Joe
http://joe.fawcett.name/
Reply With Quote
  #3 (permalink)  
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

Hi,

To add to Jeff's information:

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

If you Google or Bing) there are many results.

http://www.google.com/search?q=asp+w...rlz=1I7GUEA_en

Have you checked the.

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.