Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Page.RegisterHeadScriptBlock(String, String, String) Method

NOTE: This method is now obsolete.

The 'language' attribute is deprecated. Please use RegisterHeadScriptBlock(string key, MimeMediaType type, string script) instead


Registers script block that should be rendered within the head HTML element.

[Visual Basic]
<Obsolete(Message:="The 'language' attribute is deprecated. Please use RegisterHeadScriptBlock(string key, MimeMediaType type, string script) instead", IsError:=False)> _
Public Overloads Sub RegisterHeadScriptBlock( _
   ByVal key As String, _
   ByVal language As String, _
   ByVal script As String _
)
[C#]
[Obsolete(Message="The 'language' attribute is deprecated. Please use RegisterHeadScriptBlock(string key, MimeMediaType type, string script) instead", IsError=False)]
public void RegisterHeadScriptBlock(
   string key,
   string language,
   string script
);

Parameters

key
Script key.
language
Script language.
script
Script text.

See Also

Page Class | Spring.Web.UI Namespace | Page.RegisterHeadScriptBlock Overload List