Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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
 
Old August 20th, 2003, 10:01 AM
Authorized User
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 668 of BegASP_3.0

The problem is with Login.asp. In the <FORM> tag, METHOD="POST"> is treated as text when the page is displayed. Also in the first <INPUT> tag, VALUE=" and SIZE="40" also appear. Both are after <% %> tags which seems to indicate that parsing of the syntax fails somehow after the script tags. Is there improved syntax/code to prevent this? Or is there a patch to asp.dll to fix this? I am using W2K Pro with ASP 3.0. Thanks for your answers.

 
Old August 20th, 2003, 10:45 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,

Could you provide some more information? I really have no idea what this problem is about (and I am sure others are having a hard time to understand you too).

First of all, your problem seems "classic ASP" related, but you are posting in a ASP.NET forum.

Secondly, what exactly is the problem? Can you provide the code for the page and describe in some more detail what the problem is? Are you talking about HTML inside ASP tags? I'd post the login.asp page here if I were you......

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old August 20th, 2003, 03:04 PM
Authorized User
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The reason the question ended up here is because I couldn't find the BegASP_3.0 forum and it said all beginning ASP questions were welcomed here. With the right forum I assumed that people would have the book. The <FORM> code is:
<FORM ACTION="CheckLogin.asp<% If Request("SecondTry") = "True" Then
   Response.Write "?SecondTry=True"
   End If %>" METHOD="POST">
The <INPUT> question is similar. When I display the page, everything after the closing script tag is displayed as though it were text. It's still in the form tag because the closing bracket is at the very end, so METHOD should be being considered an attribute. Perhaps my spacing or something makes the processing do something different.

 
Old August 20th, 2003, 03:15 PM
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,

Are you sure your ASP pages are processed correctly by the webserver? This example runs fine on my machine....

What webserver are you using? Are you viewing the page through http (as in http://localhost/login.asp) or through the file system (file://...etc)? If the latter is you true, then that is your problem. The file needs to be run through a webserver supporting ASP.

Are you sure the extension of the file is .asp too? HTML files are (usually) not processed by IIS.....

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old August 21st, 2003, 01:49 PM
Authorized User
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thought that FrontPage had a nice editor. On page 51 of the book it says "In order to view the results of ASP scripts in FrontPage 2000, you need to create something that FrontPage calls a web, and place your .asp pages within the web; then you can select File | View in Browser to see what your processed ASP will look like." So I did what it said and thought it worked partway because the ACTION= part seemed to do its thing. However, then I tried it the way you suggested using the server name (localhost didn't work) and the virtual alias (the full path didn't work) and the ASP was processed and the keywords didn't appear as text. Apparently what the book said about FrontPage showing the results of ASP code wasn't true. I appreciate your stearing me in the right direction.

 
Old August 21st, 2003, 02:29 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, as far as I know, the steps should have worked. If everything has been set up correctly, Front Page should pass the request to the server instead of to the File System.

Oh well, as long as it works.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
access C#.Net page as action of calssic ASP page mansharma_s ASP.NET 1.x and 2.0 Application Design 6 January 7th, 2008 10:58 AM
ASP.NET - Static Page and Dynamic Page sohrabus ASP.NET 2.0 Professional 2 April 18th, 2007 11:42 PM
How to pass variables from Aspx page to Asp Page jayaraj Classic ASP Basics 2 May 23rd, 2004 06:56 AM





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