DOCUMENT:Q253298 25-APR-2001 [vbwin] TITLE :PRB: HTML Template Items' Names Changed in WebClass Designer PRODUCT :Microsoft Visual Basic for Windows PROD/VER::6.0 OPER/SYS: KEYWORDS:kbtemplate kbDesigner kbVBp kbVBp600 kbWebClasses kbGrpDSASP kbDSupport ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning Edition for Windows, version 6.0 - Microsoft Visual Basic Professional Edition for Windows, version 6.0 - Microsoft Visual Basic Enterprise Edition for Windows, version 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When you refresh the Webclass Designer view or reopen a project in Visual Basic 6.0, some HTML template items' names may change. For example, if a hyperlink was named "Hyperlink1" by the Webclass Designer, after you reopen the project, this name may change to "Hyperlink4" (the actual number may vary). CAUSE ===== The HTML template item does not have the name property defined. Visual Basic 6.0 Webclass Designer assigns names according to their availability and prior use in a project. RESOLUTION ========== To avoid this problem, make sure that HTML template items have their name property defined. For example, a hyperlink in an HTML template should be defined as: Link 3 STATUS ====== This behavior is by design. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a new HTML template and include the following code:
Link 1 Link 2 Link 3 2. Save the file as "Template1.htm" (without the quotation marks). 3. Add this HTML template to your Webclass project (right-click HTML Template WebItems in the Webclass Designer view and choose Add HTML Template). 4. In the Webclass Designer view, three WebItems will be shown. Usually they will be named as Hyperlink1, Hyperlink2, and Hyperlink3, though the names may vary. 5. Close the project, and then reopen it. The names of those three hyperlinks may be changed. Additional query words: ====================================================================== Keywords : kbtemplate kbDesigner kbVBp kbVBp600 kbWebClasses kbGrpDSASP kbDSupport Technology : kbVBSearch kbAudDeveloper kbZNotKeyword6 kbZNotKeyword2 kbVB600Search kbVBA600 kbVB600 Version : :6.0 Issue type : kbprb ============================================================================= 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 2001.