Writing Text to an HTML Page

The following example shows how to write HTML output to a Web page from inside a server component by using the Write method of the Response object.

Public Function OnStartPage(myScriptingContext As ScriptingContext)

  'Create a copy of the Response object
  Set myResponse = myScriptingContext.Response
  
  'use the Write method to send output to the client
  myResponse.Write "<CENTER><H1>Inside component!</H1></CENTER>"

End Function
 

© Microsoft Corporation. All rights reserved.