Microsoft KB Archive/192035

= PRB: Do Not Use a WebClass ProcessTag Inside an HTML Tag =

Article ID: 192035

Article Last Modified on 4/25/2001

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q192035



SYMPTOMS
A WebClass page does not display in the browser or is not displayed as expected.



CAUSE
You cannot use WebClass ProcessTags within an HTML tag because the design- time parser does not interpret it correctly.



RESOLUTION
The workaround is to use a WebClass ProcessTag for the entire HTML tag or do not put ProcessTags inside HTML tags.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
Notice in the code below from a HTML page that there is a WebClass ProcessTag called  with an ending  located within an HTML INPUT tag. This will not work because you have WebClass ProcessTag inside a HTML tag. sss">

Workaround
  Place your WebClass ProcessTag within the HTML page, but not inside of a HTML Tag. For example:   sss </BODY> <HTML>

</li> <li> Write code to process the ProcessTag in your WebClass ProcessTag procedure. Here is some sample code: Private Sub Template3_ProcessTag(ByVal TagName As String, _                              TagContents As String, SendTags As Boolean) TagContents = "<INPUT id=ReplaceField NAME=ReplaceField SIZE=39 _                              MAXLENGTH=50 value=sss>" End Sub

</li></ol>

<div class="references_section">