Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Page.RegisterHeadScriptEvent(String, String, String, String, String) Method

NOTE: This method is now obsolete.

The 'language' attribute is deprecated. Please use RegisterHeadScriptEvent(string key, MimeMediaType mimeType, string element, string eventName, 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 RegisterHeadScriptEvent(string key, MimeMediaType mimeType, string element, string eventName, string script) instead", IsError:=False)> _
Public Overloads Sub RegisterHeadScriptEvent( _
   ByVal key As String, _
   ByVal language As String, _
   ByVal element As String, _
   ByVal eventName As String, _
   ByVal script As String _
)
[C#]
[Obsolete(Message="The 'language' attribute is deprecated. Please use RegisterHeadScriptEvent(string key, MimeMediaType mimeType, string element, string eventName, string script) instead", IsError=False)]
public void RegisterHeadScriptEvent(
   string key,
   string language,
   string element,
   string eventName,
   string script
);

Parameters

key
Script key.
language
Script language.
element
Element ID of the event source.
eventName
Name of the event to handle.
script
Script text.

See Also

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