Aborting Script Before End of Page

Results 1 to 3 of 3

Thread: Aborting Script Before End of Page

  1. #1
    Steve Abroms Guest

    Default Aborting Script Before End of Page

    I&#039m new to ASP/VbScript, but have some moderate experience with Cold Fusion (CF). In CF there is a tag called &#060;CFABORT&#062; which will stop page generation at the point of the tag. The rest of the code on that page will not be "read". Is there an equivalent function or method in ASP? <BR><BR>Thanks,<BR><BR>Steve

  2. #2
    Keith Fowler Guest

    Default RE: Aborting Script Before End of Page

    Hey Steve, welcome to the ASP World!!!<BR>There is an equivalent in ASP. The Response Object allows you to do this.<BR><BR>&#060;% Response.End %&#062;<BR><BR>This will terminate any execution beyond the command.<BR>However, if you would like to prevent from displaying anything until all script has been executed you can try this:<BR>&#060;% Response.Buffer = True %&#062;<BR><BR>This needs to appear at the top of your page, prior to any other script being executed.

  3. #3
    Steve Abroms Guest

    Default RE: Aborting Script Before End of Page

    Hi Keith,<BR><BR>Thanks very much for your prompt response! I&#039ll give it a shot.<BR><BR>Steve

Posting Permissions

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