Microsoft KB Archive/253298: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - "<" to "<")
Line 63: Line 63:


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:
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:
<pre class="codesample">&lt;a href=&quot;&quot; name=link3&gt;Link 3&lt;/a&gt;
<pre class="codesample"><a href=&quot;&quot; name=link3&gt;Link 3</a&gt;
                 </pre>
                 </pre>


Line 82: Line 82:
<ol>
<ol>
<li><p>Create a new HTML template and include the following code:</p>
<li><p>Create a new HTML template and include the following code:</p>
<pre class="codesample">&lt;html&gt;
<pre class="codesample"><html&gt;
&lt;body&gt;
<body&gt;
&lt;a href=&quot;&quot;&gt;Link 1&lt;/a&gt;
<a href=&quot;&quot;&gt;Link 1</a&gt;
&lt;a href=&quot;&quot;&gt;Link 2&lt;/a&gt;
<a href=&quot;&quot;&gt;Link 2</a&gt;
&lt;a href=&quot;&quot;&gt;Link 3&lt;/a&gt;
<a href=&quot;&quot;&gt;Link 3</a&gt;
&lt;/body&gt;
</body&gt;
&lt;/html&gt;
</html&gt;
                     </pre></li>
                     </pre></li>
<li>Save the file as <span class="kbd userinput"> Template1.htm</span>.</li>
<li>Save the file as <span class="kbd userinput"> Template1.htm</span>.</li>

Revision as of 09:01, 21 July 2020

Article ID: 253298

Article Last Modified on 5/29/2003



APPLIES TO

  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition



This article was previously published under Q253298

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:

<a href="" name=link3>Link 3</a>
                

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new HTML template and include the following code:

    <html>
    <body>
    <a href="">Link 1</a>
    <a href="">Link 2</a>
    <a href="">Link 3</a>
    </body>
    </html>
                        
  2. Save the file as Template1.htm.
  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.


Keywords: kbdesigner kbtemplate kbwebclasses kbprb KB253298