Sometimes syntax errors are detected

Discussion in 'ASP General' started by sam.s.kong@gmail.com, Mar 11, 2006.

  1. Guest

    Hi!

    When I create or modify an asp file, obvious systax errors are not
    detected.
    For example:

    Sub MySub
    Response.Write "Hello"
    End

    It should end with "End Sub".
    But the server displays an error message like "Cannot display page".
    And I copy and delete all content in the source file, save it as an
    empty file, reload the page and the page displays an empty page.
    Now I paste the source into the file, save it, reload it, and the page
    displays the correct systax error with line number.

    Why can't the error be detected in the first place?

    Sam
     
    , Mar 11, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nehmo Sergheyev
    Replies:
    1
    Views:
    691
    Andrew Urquhart
    May 9, 2004
  2. Marcin Vorbrodt

    ::std sometimes needed, sometimes not

    Marcin Vorbrodt, Sep 16, 2003, in forum: C++
    Replies:
    24
    Views:
    1,101
    Jerry Coffin
    Sep 17, 2003
  3. Replies:
    1
    Views:
    654
    gkelly
    Nov 29, 2006
  4. Randy Smith
    Replies:
    2
    Views:
    673
    Randy Smith
    Apr 24, 2007
  5. Stef Mientki
    Replies:
    0
    Views:
    320
    Stef Mientki
    Oct 18, 2008
  6. Sébastien Barthélemy

    __file__ is sometimes absolute, sometimes relative

    Sébastien Barthélemy, Oct 1, 2010, in forum: Python
    Replies:
    1
    Views:
    780
    Arnaud Delobelle
    Oct 1, 2010
  7. paul reed

    Custom Control Width sometimes has a value...sometimes doesn't

    paul reed, Feb 17, 2004, in forum: ASP .Net Building Controls
    Replies:
    8
    Views:
    341
    Jeffrey Tan[MSFT]
    Feb 21, 2004
  8. Jesse Schoch
    Replies:
    2
    Views:
    282
    Jesse Schoch
    Oct 2, 2003
Loading...