ASP Weird Issues

  1. Data type mismach:

     

     

    • var = null
      if cLng(var) > 0 then
      This will cause this error
    • var = null
      if isNull(var) = false and cLng(var) > 0 then…
      This will still cause this error
    • var = null
      if isNull(var) = false then
         if cLng(var) > 0 then
      Sucks but works
  2. server.transfer([page])
    Don't use this function to pass form or url variables! Data will be missing because of unknown reason.
  3. isNumeric(n)
    Don't believe this function! This function has rediculous bug!
  4. Split an empty string to array
    arr = split("", "|")
    Result: no error, and ubound(arr) is -1

One thought on “ASP Weird Issues

Comments are closed.