page load cause "Unterminted string constant" in IE 7

  • Thread starter Thread starter Homer
  • Start date Start date
H

Homer

Hi,

I have a page in my web app that allows users to send change request
to HR. It stores the info to the backend first before using an
instance of the System.Net.Mail to send email through an smtp
gateway. For some strange reason, when I that page is loaded, I get
an error at the bottom left of the IE and when I clicked on it it
showed the following error inside a small IE window:

Line: 291
Char: 176
Error: script error "Unterminated string constant
Code: 0
URL: http://myserver/HRIntranet/ChangeForm.aspx

All my menu link went dead after that. Can someone please help.

Thanks,
Jon
 
Can someone please help.

It means exactly what it says, specifically that there is an error somewhere
in your JavaScript relating to an unterminated string constant, e.g.

<script type="text/javascript">
var String1 = 'This is OK';
var String2 = 'This is not OK because I've missed off the final
apostrophe;
</script>

Do a View Source and look through your JavaScript...
 
It means exactly what it says, specifically that there is an error somewhere
in your JavaScript relating to an unterminated string constant, e.g.

<script type="text/javascript">
var String1 = 'This is OK';
var String2 = 'This is not OK because I've missed off the final
apostrophe;
</script>

Do a View Source and look through your JavaScript...

But the problem is it's a asp.net 2.0 app and there's no javascript in
it except for the "alert" in the catch ex...
 
But the problem is it's a asp.net 2.0 app and there's no javascript in
it except for the "alert" in the catch ex...

Do a View Source and look through your JavaScript...
 
Back
Top