GetPltHead Method (.NET)

 

This method works identically to the PltHead method, except it returns a string containing the Page Load Time instrumentation JavaScript code, rather than inserting this code directly into the browser’s output stream.

 

Syntax:

string jsForHeadSection BrowserObj. GetPltHead(PLTOptions pltOptions);

 

pltOptions – An instance of the PLTOptions class, used to control PLT preferences and options.

 

TIP: Using this method instead of PltHead is handy if you wish to have better control over exactly at which point you call BrowserHawk methods. For example, assume you have an ASP.NET server-side Label control called extraDataForHead that is defined in your Master Page. Using GetPltHead() you could assign extraDataForHead.Text to equal the output returned by GetPltHead in the ASP.NET page’s OnLoad event – rather than having to call PltHead directly from your Master Page.

 

Note: Use of the PLT feature requires the BrowserHawk Enterprise Edition.

 

C# Example:

 

<%

string jsForHead;

PLTOptions pltOptions = new PLTOptions();

jsForHead = BrowserObj.PltHead(pltOptions);

%>

<html><head><title>My Title</title>

<% Response.Write(jsForHead); %>

</head><body>page goes here</body></html>

 

See Also:
PltHead Method (.NET)

PLT FAQ

About Page Load Time Monitoring

BrwsUrl Property (.NET)

ExtraString1 Property (.NET)

ExtraInt1 Property (.NET)

ExtraDouble1 Property (.NET)

SessionID Property (.NET)

UserID Property (.NET)

CookieDomainOverride Property (.NET)