DOCUMENT:Q192035 25-APR-2001 [vbwin]
TITLE :PRB: Do Not Use a WebClass ProcessTag Inside an HTML Tag
PRODUCT :Microsoft Visual Basic for Windows
PROD/VER::6.0
OPER/SYS:
KEYWORDS:kbInternet kbVBp kbVBp600 kbWebClasses kbGrpDSASP kbDSupport
======================================================================
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows, version 6.0
- Microsoft Visual Basic Enterprise Edition for Windows, version 6.0
-------------------------------------------------------------------------------
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.
MORE INFORMATION
================
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.
Workaround
----------
1. Place your WebClass ProcessTag within the HTML page, but not inside of a HTML
Tag. For example:
sss
2. 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 = ""
End Sub
REFERENCES
==========
For additional information on WebClasses, see the following article in the
Microsoft Knowledge Base:
Q189539 INFO: VB 6.0 Readme - Part 8 - WebClass Designer Issues
A WebClass sample will be located at the following location when you install the
MSDN samples:
Microsoft Visual Studio\MSDN98\98VS\1033\Samples\VB98\WcDemo\WcDemo.vbp
Additional query words:
======================================================================
Keywords : kbInternet 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.