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 exposed by the IResponse interface.

public void OnStartPage(IScriptingContext objContext)
{
    Variant v = new Variant("<CENTER><H1>Inside Component!</H1></CENTER>");

    objContext.getResponse().Write(v);
}
 

© Microsoft Corporation. All rights reserved.