Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 20th, 2003, 10:01 AM
Authorized User
Points: 139, Level: 2
Points: 139, Level: 2 Points: 139, Level: 2 Points: 139, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Spokane, WA, USA.
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.

  #2 (permalink)  
Old August 20th, 2003, 10:45 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #3 (permalink)  
Old August 20th, 2003, 03:04 PM
Authorized User
Points: 139, Level: 2
Points: 139, Level: 2 Points: 139, Level: 2 Points: 139, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Spokane, WA, USA.
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.

  #4 (permalink)  
Old August 20th, 2003, 03:15 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #5 (permalink)  
Old August 21st, 2003, 01:49 PM
Authorized User
Points: 139, Level: 2
Points: 139, Level: 2 Points: 139, Level: 2 Points: 139, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Spokane, WA, USA.
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.

  #6 (permalink)  
Old August 21st, 2003, 02:29 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
 


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
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



All times are GMT -4. The time now is 08:39 AM.


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