Kentico 11 API Reference
Kentico 11 API Reference
Namespaces
CMS.Base Namespaces
CMS.Base.Web.UI
PageExtensions Class
PageExtensions Methods
AddToHeader Method
PageExtensions
AddToHeader Method
Adds the given HTML code to the header of the page.
Namespace:
CMS.Base.Web.UI
Assembly:
CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax
C#
Copy
public
static
void
AddToHeader
(
this
Page
page
,
string
html
)
Parameters
page
Type:
System.Web.UI
Page
Page
html
Type:
System
String
HTML to add
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Page
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
PageExtensions Class
CMS.Base.Web.UI Namespace
Copyright (c) 2017 Kentico Software
Send comments on this topic to
support@kentico.com