PRB: Don't Modify ASP File Created by the WebClass DesignerID: Q191187
|
Place a Response.write command just before the ProcessNoStateWebClass call in the .asp file generated by the WebClass Designer. When you navigate to that site, you see only the Response.write output. You do not see any output from your WebClass even though the code is running.
The information that the WebClass writes to the Response property is flushed by the call to Response.write in the .asp file.
Do not change the .asp file that is created by the WebClass designer.
This behavior is by design.
Following is a sample .asp file created by the WebClass Designer that has
been modified. Notice the Response.write "Initializing " line of code.
<%
Response.Buffer=True
Response.Expires=0
If (VarType(Application("~WC~WebClassManager")) = 0) Then
Application.Lock
If (VarType(Application("~WC~WebClassManager")) = 0) Then
Set Application("~WC~WebClassManager") =
Server.CreateObject("WebClassRuntime.WebClassManager")
End If
Application.UnLock
End if
Response.write "Initializing "
Application("~WC~WebClassManager").ProcessNoStateWebClass "MyApp.xxx", _
Server, _
Application, _
Session, _
Request, _
Response
%>
Please see the following article here in the Microsoft Knowledge Base for
more information on WebClasses:
Q189539 : INFO: VB 6.0 Readme Part 8: WebClass Designer Issues
Keywords : kbInternet kbVBp kbVBp600 kbWebClasses
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: June 21, 1999