BUG: JScript Compilation Error '800a03ec' Expected ';' (190940)
The information in this article applies to:
- Microsoft Visual InterDev 6.0
This article was previously published under Q190940 SYMPTOMS
On an Active Server Pages (ASP) page with a Grid you get the following
error:
Microsoft JScript compilation error '800a03ec'
Expected ';'
/ShipTest/_ScriptLibrary/DataGrid.ASP, line 197
On a DHTML page with a Grid, only the navbar and paging information (Page x
of n) appears. Or as a DHTML page is loading you get an "Internet Explorer
Script Error" dialog box containing text that is similar to the ASP error
above.
CAUSE
This error occurs because an apostrophe was entered in the Header for the
Grid. The header input text box can be found on the Custom property pages
of the Grid on the Data tab in the Edit columns section.
The Grid is implemented in JavaScript. In JavaScript the apostrophe (') is
a string delimiter as is a double-quote ("). The Grid uses apostrophes as
string delimiters internally.
RESOLUTION
To get an apostrophe to appear in the Header of the grid you need to put
two backslash (\\) characters before an apostrophe. This will cause the
apostrophe to appear as you would expect. This is also known as escaping
the apostrophe (see below for more information on escaping in JavaScript
and the DTC Grid).
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Minor | Last Reviewed: | 2/11/2005 |
---|
Keywords: | kbBug kbCtrl kberrmsg kbpending KB190940 |
---|
|