Click or drag to resize
AjaxHelperExtensionsRegisterUpdatableFormScript Method
Returns immediately executed JavaScript block which enables form identified with formId to be updatable upon changes of the form data. Script block must be positioned under the form element identified with formId. Form has to contain attribute 'ktc-data-ajax-update' or 'data-ajax-update' to identify element where the form is to be re-rendered.

Namespace: Kentico.Forms.Web.Mvc.Internal
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static string RegisterUpdatableFormScript(
	this ExtensionPoint<AjaxHelper> instance,
	string formId
)

Parameters

instance
Type: Kentico.Web.MvcExtensionPointAjaxHelper
AjaxHelper extension point.
formId
Type: SystemString
Identifier of the form in the DOM.

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ExtensionPointAjaxHelper. 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).
Exceptions
ExceptionCondition
ArgumentExceptionThrown when formId is null or empty.
See Also