Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 March 28th, 2010, 10:57 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Windows 7 ASP failure

I have a windows7 system with both IE and Firefox. I have worked my way to about page 115 in Beginning active server pages 3.0 with every example working as advertised until the first response.write example.

IE loads and then terminates. Firefox ignores the begin asp and end asp markers and prints the asp code as text. I have reducted the example to:

<html>

<body>

<%
response.write("My first ASP script!")
%>

</body>

</html>

Which has the same strange results.

Any thoughts? Suggestions?
 
Old March 29th, 2010, 02:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

<% and %> are *server side* instructions which, in the case of classic ASP, means your page must be processed by IIS, the web server on Windows. All the browser gets to see is "My first ASP script!".

How are you browsing to the page? Is it being processed by the web server and does the page have a .asp extension?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 29th, 2010, 08:53 AM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP and IIS

Thanks.

I believe I have successfully installed IIS on this computer. How do I verify this?

I get the same results if I run a HTML page which "calls" the ASP page (the example in the ASP 3.0 book (from my local library) or if I load it directly into IE or Firefox. I wrote the little test program to show the issue with as little code as possible.

It would seem clear that the code is not being handled by IIS (only seen by IE or Firefox). How do I "arrange" for the code to be processed by IIS as if passes from the HTLM page to the ASP page?

Also, should I quit reading the 3.0 book and find a book for 4.0?
 
Old March 29th, 2010, 09:14 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

How are you browsing to the page? As http://localhost/SomePage.asp or as c:\SomeFolder\Somepage.asp?

In the former case, the page is processed by IIS. To test if IIS is installed and running, type inetmgr on the start menu.This should bring up the IIS Manager tool.

With regard to "classic ASP 3": there is no version 4. Classic ASP stopped at version 3. Maybe you are referring to ASP.NET 4 instead? If so, Classic ASP can be considered ASP.NET -1 as it was replaced by .NET in 2000 ;-)

Personally, I wouldn't invest (a lot) of time in Classic ASP. It's hardly used for new projects anymore these days (depends on the company of course), so unless you're looking for a job as a classic ASP maintainer, you're probably better off learning .NET. In my signature you find a reference to my latest book Beginning ASP.NET 4 in C# and VB that will teach you the basics and beyond of ASP.NET 4.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 29th, 2010, 09:26 AM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aha! I was loading into the browser as C:something. I will try the other method and let you know if it solves the problem.





Similar Threads
Thread Thread Starter Forum Replies Last Post
failure sending e-mail (os is windows 7 and server is iis7) ruslandag ASP.NET 3.5 Professionals 2 September 17th, 2009 01:13 PM
Use Windows Authentication - ASP misskaos99 Classic ASP Basics 3 January 17th, 2007 01:18 AM
ASP.NET Email Failure ramuis78 ASP.NET 1.0 and 1.1 Professional 4 October 12th, 2006 03:08 PM
How use Windows API in asp yogeshkale Classic ASP Components 0 March 8th, 2006 02:17 AM
MS Access and ASP : DATE Format failure Sebastiaan Classic ASP Basics 2 October 1st, 2003 12:32 PM





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