Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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
  #1 (permalink)  
Old January 24th, 2005, 11:06 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default Why .asp source codes are display on screen?

Hi, all,

I create a word object by using CreateObject("Word.application"), insert some text in the object, then saveas a "report.doc" file in file text.asp, then use Response.redirect("report.doc") to display the report on the screen. in most of the case, everything is fine, word file is created, the contents is displayed on the screen, the URL is : localhost/test/report.doc. But sometimes, even the report.doc is created, but instead of displaying the word file contents in the screen, the source codes are displayed on the screen, with some strange characters, the URL is still: localhost/test/test.asp, did anybody have the same problem before? why did this happened?

Thanks!

Andraw



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Run Source Codes elvisfeverr BOOK: Ivor Horton's Beginning Visual C++ 2005 2 January 22nd, 2008 11:27 AM
Source Codes Ratul Beginning VB 6 2 June 26th, 2007 06:31 PM
Unable to find source codes for the book sluggish_homer General .NET 1 May 21st, 2007 09:28 PM
source codes for book:Professional Java Programing stanax Forum and Wrox.com Feedback 1 November 2nd, 2003 10:46 AM





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