page load cause "Unterminted string constant" in IE 7

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
 
M

Mark Rae [MVP]

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...
 
H

Homer

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...
 
M

Mark Rae [MVP]

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...
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top