Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2002
    Location
    Alabama sans the damn flag
    Posts
    263
    Member #
    38
    I have a page that asks for login information (page 1). I have another page that evaluates the information (page 2).

    I can go back to the page 1 if something went wrong (bad password, username, blanks, ....) but I want to show an error message on page 1 that is returned from page 2.

    How do I do this in ASP?

    I'm very new to this and can't find the reference in the books. Alternatively, If someone can tell me what this is called, I can look it up.
    DerFarm
    I talk to squirrels.
    Squirrels Answer.

  2.  

  3. #2
    Senior Member Kings's Avatar
    Join Date
    Feb 2002
    Posts
    129
    Member #
    19
    Well, there are several ways of doing this. I'd use querystrings, e.g
    Page 1:
    Code:
    Response.Write Request.QueryString("error")
    
    'Rest of page 1 here (e.g html+form)
    Page 2:
    Code:
    'Evaluation code here
    
    'If there was an error, redirect back to page1 with message
    Response.Redirect "page1.asp?error=Please fill in a name"
    K i n g s

    Several handy ASP Resources:
    4guysfromrolla | aspin | ASP101 | AspIt | learnasp

    Several handy ASP.NET resources:
    ASP.NET | .NET Experts | O'Reilly .NET | AspIt | 4guysfromrolla

    Several paid ASP/ASP.NET webhosts:
    Brinkster | Maximum ASP | Clicktech | Nodehosting | Uplinkearth | Webhost4life

  4. #3
    Senior Member
    Join Date
    Mar 2002
    Location
    Alabama sans the damn flag
    Posts
    263
    Member #
    38
    Ah, Thank you very much. Exactly what I needed.
    DerFarm
    I talk to squirrels.
    Squirrels Answer.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:55 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com