Missing Design View with empty script tag

Last post 05-15-2009 1:59 PM by rsidie. 0 replies.

Sort Posts:

  • Hmm [^o)] Missing Design View with empty script tag

    05-15-2009, 1:59 PM
    • Member
      4 point Member
    • rsidie
    • Member since 04-10-2009, 10:07 AM
    • NJ
    • Posts 3

    If using <script> tags with empty content, as when referencing a javascript file on the server, valid HTML would allow for the start tag to be closed with />.  For example,

    <script language="javascript" type="text/javascript" src="scripts/test.js" />

    However, the Visual Studio IDE interprets this as the start of a script section with no end tag.  The result is that no design view will be displayed.

    To fix this problem, use a separate closing tag, as follows:

    <script language="javascript" type="text/javascript" src="scripts/test.js" ></script>
     
Page 1 of 1 (1 items)