473,396 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

page load cause "Unterminted string constant" in IE 7

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

Sep 6 '07 #1
3 1893
"Homer" <Ho*******@gmail.comwrote in message
news:11*********************@r34g2000hsd.googlegro ups.com...
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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 6 '07 #2
On Sep 6, 2:09 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"Homer" <HomerS...@gmail.comwrote in message

news:11*********************@r34g2000hsd.googlegro ups.com...
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...

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
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...

Sep 6 '07 #3
"Homer" <Ho*******@gmail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
>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...
Do a View Source and look through your JavaScript...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 6 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: /dev/null | last post by:
Is there a function in php that you can pass a string headed for a mysql query and have it make it 'safe'? For example it would escape out the ' found in the string. Thanks!
3
by: Leo Nunez | last post by:
Hello! I need copy from structure "A" to "B" that contains "strings" in a one line code. Me problem like this : typedef struct tHeader{ char field1; char field2; char field3;
0
by: jiabin | last post by:
Hi, I got an exception with the message below, when I'm trying to start my application. "Could not load a type. Failed to partially bind to "System.String, mscorlib". " I did a search on...
2
by: stainless | last post by:
I know this is probably simple but I cannot find a method of converting a date string into a format that matches the DatePicker format in C# eg string "20080131" converted to "31 January 2008" ...
22
by: MLH | last post by:
100 Dim db As Database, rst As Recordset 120 Set db = CurrentDb 140 PString = "SELECT qryBatchList.ReadyFor906, qryBatchList.BatchID FROM qryBatchList WHERE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.