Stop processing in ASP

Hi Experts,

I want to stop processing any further code in a ASP page(VB Script) after a specific line. I have tried exit command . it did not work. What is the right command to do so?

Thanks & Regards,
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Irwin SantosComputer Integration SpecialistCommented:
what's the code?
saichakAuthor Commented:
Actually I'm checking for some value in the database tables and value is returned from procedure call. If the value matches some required criteria then I have to show a message on the screen label and stop further processing. The code is in the default.asp page and activated on a button press.
Irwin SantosComputer Integration SpecialistCommented:
why not display the variable that you are looking for..


that's the simplest to see wthat result you have.
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

b0lsc0ttIT ManagerCommented:
Response.End will end processing of your script.  You may have to start your script with the line below ...

Response.Buffer = True

[your code]


[rest of code not processed]

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
b0lsc0ttIT ManagerCommented:
This page has some information on Response.End


  sure Response.end
  is the solution , one thing i want to ask u r u taking that value from form on asp page , if u found that in db
  and then u do some matching criteria , and display...  if its not there what are doing after that seraching for next entry or what... porabably i wont be getting theme rite , pls let me know

b0lsc0ttIT ManagerCommented:

We have not heard from you in a while.  Were you able to try my suggestion?  Did you have any questions or have a problem with it?  If I understood you correctly then it is what you need.  The link I provided has an example but I can provide another if you need it.

If one of our comments did help you then please accept it with a good or great grade to close the question.  If you would like more information or if there is a problem then please let us know.

b0lsc0ttIT ManagerCommented:
@Pinaldave - I recommend accepting (http:Q_21824895.html#16623539).  It is the way to stop processing an ASP script.  It is my comment but I don't need the points that bad. :-)  Let me know if you have questions or comments.

b0lsc0ttIT ManagerCommented:

I meant to suggest the comment before that (http:Q_21824895.html#16623533), my first comment.  Sorry for the bad link.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.