Here is the answer ;
| Why do I get 800A0408 errors?
|
http://www.aspfaq.com/2376
created: 2002-08-19
last updated: 2002-08-19 10:27
this article is
printer friendly |
Microsoft VBScript compilation error '800a0408' Invalid character | If
you cut and paste code from other sources (e.g. web sites, other
editors, etc) you often bring along characters that don't show up in
Notepad but are, nonetheless, present -- or do appear as non-prinatable
characters, that look like little squares. If you're looking at the
line in question and it isn't simply an unclosed string or a premature
carriage return, try deleting the line(s) altogether and re-typing them
by hand. This should eliminate the possibility of 'invisible' problem
characters mucking up the stream. | |
|
In short words , this is not an error from the base code ! It is an error from your copy-paste procedure .
For correcting this you have some solutions ;
A. Write the non working line by hand again to a new line then delete the original .
B. Go to the line which reports this error , step one line above and press delete . Continue this delete until the non working line touches the last char of your last working line . Then press enter , and save your asp file !
I know this is spooky but if you do this you will eliminate any unshown chars from your code .
C. Copy the entire code to a blank text document , than copy it again to your default.asp page . DO NOT directly copy the code from source webpages to your asp pages .
My best choices are A and C ;)
Give it a try , this will solve your problems I think .
Regards ,
---------- In Turkish ;
Dostum hata veren satırdan bir önceki satıra çıkıp delete tuşuna bas , bu işlemi hata veren satırın ilk harfi çalışan satırın son harfi ile temas edene kadar tekrarla .
İki satır birleştiğinde enter'a bas ve kodu eski haline getirmiş ol .
Kaydet ve çık , çalışacaktır .
Bu şekilde kopyala-yapıştır işlemi ile koduna eklenen ama göremediğin ( satır başı , satır sonu gibi kodsal ) bilimum karakterleri yok etmiş olacaksın .
Bir dene ...
Saygılar