Article ID: 191039
Article Last Modified on 7/15/2004
Private Sub WebClass_Start()
Set NextItem = Template1
end Sub
You use the NextItem property to shift processing from one WebItem to another during a single request. This causes the Template1_Respond event to fire.
Private Sub Template1_Respond()
Template1.WriteTemplate
End Sub
The WriteTemplate method sends the contents of Template1 to a client browser window. (Template1 is the HTML file that you imported into the IIS application.) If you do not put anything in this event, and you run the project, the browser displays a blank page.
Private Sub Template1_Respond()
'Write a reply to the user.
With Response
.Write "<html>"
.Write "<body>"
.Write "<h1>WebClass1's Starting Page</h1>"
.Write "<p>Response was created in the Template1_Respond event</p>"
.Write "</body>"
.Write "</html>"
End With
End Sub
186273 BUG: AV Running VB-Built Component in Multi-Threaded Environment
189538 BUG: Need to Remove the "Me" References from WcDemo Sample
189539 INFO: VB 6.0 Readme Part 8: WebClass Designer Issues
189540 PRB: Access Denied Error on WebClass Files
190252 How To Change the External HTML Editor
190253 INFO: VB6 Designers Do Not Work in VB5
191035 BUG: Changes to WebClass Templates Not Always Detected
191038 INFO: WebClass Initialize, BeginRequest, Terminate Events
191119 FIX: VB Classes Can Cause IIS to Have Access Violations
191125 BUG: Error Logging Could Have Problems in WebClass Designers
191187 PRB: Do Not Modify ASP File That Is Created by the WebClass Designer
Keywords: kbhowto kbcodesnippet kbwebclasses KB191039