Edit

Share via


PostBackOptions.RequiresJavaScriptProtocol Property

Definition

Gets or sets a value indicating whether the javascript: prefix is generated for the client-side script.

public:
 property bool RequiresJavaScriptProtocol { bool get(); void set(bool value); };
public bool RequiresJavaScriptProtocol { get; set; }
member this.RequiresJavaScriptProtocol : bool with get, set
Public Property RequiresJavaScriptProtocol As Boolean

Property Value

true if the javascript: prefix is generated for the client-side script; otherwise, false. The default value is true.

Remarks

The javascript: prefix is needed with some HTML attributes such as the href attribute of the <a> tag to distinguish a JavaScript property from a URL. An attribute like onclick does not need the javascript: prefix because it is automatically associated with JavaScript.

Applies to