1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

GoTo statement

Discussion in 'C#' started by micanti, May 15, 2006.

  1. #1
    Is it possible to use the GoTo statement in ASP/VBScript ?! If not, how can i do something similar ?!

    Thanks
     
    micanti, May 15, 2006 IP
  2. jfilley

    jfilley Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It doesn't support GoTo statement. Use On Error Resume Next then check for Err.Number and Count. You can then write custom error handlers / functions to handle different errors
     
    jfilley, May 19, 2006 IP
  3. Postingpays

    Postingpays Well-Known Member

    Messages:
    1,071
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Yes, it does not support GO To statement in VB or javascript. YOu can use your if condition for this. Alternatively Error object is used to solve this problem too. www.asp101.com is the best site to get the knowledge.
     
    Postingpays, Aug 15, 2006 IP