Microsoft KB Archive/215337

= PRB: Error "The Editor Is Unable to Switch to Design View Because There Is Unquoted ASP Script in an Attribute Value or Inside a  Tag" =

Article ID: 215337

Article Last Modified on 4/25/2001

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q215337



SYMPTOMS
When Authoring Active Server Pages in Visual InterDev 6.0 using the Source Editor, you may receive the following error:

The editor is unable to switch to Design view because there is unquoted ASP script in an attribute value or inside a tag.

Embedded Active Server Pages (ASP) code within certain HTML tags will produce the above error message when switching to Design view. Inserting the following code into an ASP page from Source Editor and then switching to Design view will reproduce this problem:

 ">Option 1 



CAUSE
The Design Editor does not handle ASP script within certain HTML tags. Before switching to Design view, the Source Editor examines your code for embedded ASP script within HTML tags and will display the error message above and prevent you from switching to Design view if it finds embedded ASP script within certain HTML tags.



RESOLUTION
To work around this issue, you will need to Response.Write out the HTML that contains the embedded ASP. This will enable you to switch to Design view; however, the HTML control will not appear on the page. The following code is an example:

<%  Response.Write "" Response.Write " Option 1" Response.Write "" %>



STATUS
This behavior is by design.

Keywords: kberrmsg kbide kbprb KB215337

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.