Breaking ASP Script

Results 1 to 2 of 2

Thread: Breaking ASP Script

  1. #1
    Join Date
    Dec 1969

    Default Breaking ASP Script

    I want to break the script so it will stop executing and the user will see only what has taken place up until that point. This is for error control. Basicly here is what I want:<BR><BR>&#060;% set FSO = server.CreateObject("Scripting.FileSystemObject") %&#062;<BR>&#060;% if fso.FileExists(Server.MapPath("/") & "uploads\" & request.form("filename")) then %&#062;<BR> &#060;font color=red&#062;Sorry, that file already exists&#060;/font&#062;<BR>&#060;% end if %&#062;<BR>&#060;some other html here&#062;<BR><BR><BR>What I want is the user to ONLY see the error message, so I want the script to STOP outputting at that point. Thanx!

  2. #2
    Join Date
    Dec 1969

    Default <% Response.End %> [eom]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts