Microsoft KB Archive/191974

{|
 * width="100%"|

BUG: Error '800a03ec' May Occur When Using Grid DTC

 * }

Q191974

-

The information in this article applies to:


 * Microsoft Visual InterDev, version 6.0

-

SYMPTOMS
When using a Grid Design-time control (DTC) on an Active Server Pages (ASP) page, the following error may occur when the page is browsed:

Microsoft JScript compilation error '800a03ec'

Expected ';'

/../_ScriptLibrary/DataGrid.ASP, line 197

If the Grid DTC is implemented using DHTML, the following error occurs in the browser:

A Runtime Error has occurred:

Line: 197

Error: Expected ';'

CAUSE
This error will occur if a single opening quotation mark is present as part of a column's header in the Grid DTC.

RESOLUTION
Precede the single quotation mark in the grid column's header with two escape characters "\\". For example, if a column's header is "Owner's E-mail," change the header to "Owner\\'s E-mail."

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Steps to Reproduce Behavior

 * 1) Open a new Web project in Visual InterDev 6.0.
 * 2) Create a database connection in the project.
 * 3) Add a Recordset DTC to the ASP.
 * 4) Bind the recordset to a table in the data connection.
 * 5) Add a Grid DTC to the ASP.
 * 6) Bind the Grid DTC to the recordset and select some fields.
 * 7) In the Properties of the Grid DTC (right-click the Grid DTC and select Properties), select the Data tab.
 * 8) Select a column in the Grid columns box.
 * 9) In the Header text box near the bottom of the Properties window, enter text with a single quote, such as Owner's Email.
 * 10) Click OK to close the Grid DTC Properties window.
 * 11) Save the ASP page.
 * 12) Right-click the ASP page and select View In Browser.

Additional query words:

Keywords : kbCtrl kbVisID600bug kbGrpDSASP

Issue type : kbbug

Technology : kbVisIDsearch kbAudDeveloper kbVisID600