DOCUMENT:Q190255 07-AUG-1998 [vbwin] TITLE :BUG: DHTML Page Designer Does Not Insert the Tag PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS:kbVBp600bug kbInternet kbPageDesigner ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- SYMPTOMS ======== 1. The browser incorrectly displays your HTML page. 2. Unexpected behavior occurs when you work on your page in the designer window of your DHTML application. CAUSE ===== DHTML Page Designer is not inserting an tag at the beginning of the HTML file it creates. RESOLUTION ========== To work around this problem, use one of the following three options: Option 1 -------- Store your DHTML Page Designer page as an external HTML file. Edit the HTML file manually using an external editor and insert the tag. Option 2 -------- Import an existing HTML file when creating a new DHTML Page Designer page. Option 3 -------- Change the default DHTML Page Designer template so all HTML files have the tag. The template project is "DHTML application.vbp". This project is stored under the Visual Studio folder in the VB98\Template\Projects subfolder. NOTE: Save copies of all the files for the "DHTML application.vbp" (this is the default DHTML Page Designer template) in a backup location in case something goes wrong. Follow these steps: 1. Open the "DHTML application.vbp" project in Visual Basic. 2. Open the DHTMLPage1 Properties dialog box. 3. Select "Save the HTML as an External file". 4. Select "Create new HTML file". 5. Launch the external editor to edit this HTML page. 6. Delete the two lines with and tags (there seems to be a corrupted character on one of them). 7. Retype the and tags. 8. Open the DHTMLPage1 Properties dialog box. 9. Select "Save HTML as part of the VB project". 10. Select the File menu item and save both the DHTMLPage1.dsr file and DHTMLPage1.vbp file 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. MORE INFORMATION ================ To take advantage of more editing features, you may want to use an external editor. To use an external editor on your page, you must store it as an external HTML file. Or, use the Launch Editor icon in the DHTML Page Designer toolbox, as described in the following article in the Microsoft Knowledge Base: ARTICLE ID: 190252 TITLE : HOWTO: Change the External HTML Editor for DHTML Page Designer REFERENCES ========== Please see the following Microsoft Knowledge Base article for more information on the DHTML Page Designer: ARTICLE-ID: Q190249 TITLE : DHTML Page Designer Section of VB6 Readmevb.htm Additional query words: kbPageDesigner kbInternet kbVBp600bug kbdsi kbDSupport kbVBp ====================================================================== Keywords : kbVBp600bug kbInternet kbPageDesigner Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.